codeigniter id of last insert
$id = $this->db->insert_id(); $this->db->insert('posts', $post_data);
$insert_id = $this->db->insert_id();
return $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:
- can i throw exception in catch block php
- check if value contain letter php
- convert string to date php
- disable errors php
- HOW TO GET LAST INSERTED ID FROM TABLE IN SQL IN CODEIGNITER
- defaultstringlength(191)
- 2 days in php
- age date de naissance php
- am pm date format php
- create child theme in wordpress
- centos 7 install php composer
- date du jour en php
- change time format in php
- clear laravel.log
- Adding or Subtracting Time
- cache issue laravel
- date format php l with capital
- delete cache on host laravel
- dateFormat php
- fgets in php ommit new line
- apache php default date format 4 digits
- enablequerylog laravel
- array get only the value without duplicate
- current datae in php