codeigniter get lst 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:
- connect mongodb with php
- base64 decocde shoiing special char in php
- create a laravel project comand line
- extend maximum execution tim e
- check if someone right click javascript
- base64 encode username password php example
- Modularizing laravel 8.0
- PackageManifest.php line 131: Undefined index: name
- display error on screen
- difference entre deux date php
- disable timestamp laravel
- $this->validate($request,[ 'name' => 'required|unique:categories', 'images' => 'required|mimes:jpeg,bmp,png,jpg'
- composite unique between two columns laravel migration
- convert to format date php
- execute composer with php version
- check array in array key
- base64 encode and decode in php
- currency convertor in php
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 40 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129
- apt install php7.4-mbstring php7.4-zip php7.4-xml
- Jan 5, 2021 15:37:25 time format php
- disable errors in php
- php check if string contains
- date("Y/m/d h:i:s") php