How to get last insert id in Codeigniter
$this->db->insert(‘users’, $data); # where $data is an array
$insert_id = $this->db->insert_id(); # insert_id() fucntion returns last insert id
return $insert_id;
$this->db->insert(‘users’, $data); # where $data is an array
$insert_id = $this->db->insert_id(); # insert_id() fucntion returns last insert id
return $insert_id;
Best method to change Laravel's default timestamps: Step 1: Override const in specific... read more
Most popular browsers like Google Chrome and Mozilla Firefox allow you to... read more
ERROR - 2017-02-18 14:17:00 --> Could not find the specified $config['composer_autoload'] path:... read more
Simple structure to pin the flow to developers mind for project IS ... read more
One of the reasons why smart phones have become so popular is... read more
Following Code is required for that: echo $this->Html->image("your_img.png", array( 'url' => array('controller' => 'some_controller',... read more
Have you ever read emailed somebody and spent time wondering whether they... read more
Unable to negotiate with 140.211.10.43: no matching key exchange method found. Their... read more
Below code can be helpful $this->response->file($this->DIR.$file, array('download' => true, 'name' => "$file")); read more
Leave a Reply
You must be logged in to post a comment.