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;
Unable to negotiate with 140.211.10.43: no matching key exchange method found. Their... read more
How to check laravel version: Step1: Find Application.php file in your app and... read more
Screen Got stuck eventually with this error during CodeIgniter development. Fatal error: Class... read more
Following Code is required for that: echo $this->Html->image("your_img.png", array( 'url' => array('controller' => 'some_controller',... read more
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
In simple words, class is a user defined datatype. Which have its... read more
Best method to change Laravel's default timestamps: Step 1: Override const in specific... read more
With our data increasingly moving to the cloud, chances are that whenever... read more
Have you ever read emailed somebody and spent time wondering whether they... read more
Fix spanish translations (email sent sep 10) login mods (email sent march 2) add... read more
Leave a Reply