codeigniter get last insert
$id = $this->db->insert_id(); $db = db_connect();
$query = $db->query("SELECT * FROM users ORDER BY id DESC LIMIT 1");
$result = $query->getRow();
Also in PHP:
- create new project in laravel
- filter_var filter_validate_url
- current time in php
- check type of object in php
- associative array rev in php
- factorial function php
- clear catche laravel
- all php error report
- HOW TO GET LAST INSERTED ID FROM TABLE IN SQL IN CODEIGNITER
- crete new project in laravel
- array splice php
- array unique removing key
- console.php
- creating a laravel project with composer
- echo date in php
- Laravel Eloquent, group by month/year
- error messaging php
- encode and decode data in php
- composer global laravel
- clear array php
- error show all php
- dynamic url laravel
- explain email injection
- console.log. php print