codeigniter get last inserted id
$id = $this->db->insert_id();function add_post($post_data){
$this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $insert_id;
}
Also in PHP:
- exec output php
- add display_errors in funtion php
- file_get_contents timeout
- How to check if fwrite failed php
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 134217736 bytes) in phar://C:/laragon/bin/composer/composer.phar/src/Composer/DependencyResolver/RuleSet.php on line 84
- artisan composer install
- app clear cache in laravel
- Too few arguments to function Illuminate\Routing\PendingResourceRegistration::name(), 1 passed in D:\xampp\htdocs\routes\web.php on line 30 and exactly 2 expected
- $mpdf
- Laravel Excel numbers formatted as text still appearing as number
- How do I make a redirect in PHP?
- array key exi
- add php var to js console log
- Str::split laravel
- datetime manual date format
- current date in codeigniter
- Delete Query with Where Condition in Codeigniter
- current ip in php
- Allowed memory size of 1610612736 bytes exhausted larave lvalet composer
- How do you clear cache in Laravel?
- brew downgrade php 8 to 7.4
- buddypress author link
- check string is present in php
- $user = User::find($request->userid);