codeigniter return last inserted id
$id = $this->db->insert_id(); $this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $insert_id;
Also in PHP:
- am pm in php
- find char in string php
- Laravel DB facade relations
- array no of duplictae items php
- day + 1 php
- auto refresh page php
- Your Composer dependencies require a PHP version ">= 7.2.0".
- file_put_contents php json file
- creating new project laravel
- date format create in php
- apply soft delete by custom laravel
- count chars php
- create a seeder laravel
- create migration model and seeder laravel
- array_key_exists($x, $p)
- check substring in string php
- Laravel store multiple files
- eliminate duplicate values from associative array phph
- date now php
- create project laravel 6
- call controller function from another controller laravel
- check if array items are in an associative array
- display date format in php
- composer and php version