codeigniter insert get last id and increment by one value
$id = $this->db->insert_id(); $this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $insert_id;
Also in PHP:
- fetch data based on month and year in laravel
- create folder php en linux centos 7
- difference entre deux date php
- Class 'App\Http\Controllers\Validator' not found
- check array for duplicate values php
- create migration laravel
- array value exists php and get key
- Malformed UTF-8 characters, possibly incorrectly encoded
- debuggin native php
- <?php trim($_POST["data"]); ?>
- client_ip() function php
- check if string matches php
- echo date('Y-m-d'); python
- datatype checking in php
- contains functin php
- add new column in existing table in laravel migration
- date"h" php format
- 500 server error in laravel
- all php error report
- check version of php using composer
- Get last id in laravel
- check key exists in array in php
- clear cache locally laravel
- browser console print php variable