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;
Fix spanish translations (email sent sep 10) login mods (email sent march 2) add... read more
Create a DIR in your laravel app root and name it "myapp", you... read more
"Add this in your component public function initialize(Controller $controller) { $this->controller = $controller;... read more
Try "keypress" evenHandler in jQuery: Notice Below Code, Although this code is correct... read more
Login to Admin panel Click on People Click on Roles and create Custom Role... 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
Fork a Repo. A fork is a copy of a repository. Forking... read more
Simple structure to pin the flow to developers mind for project IS ... read more
While Google is quite generous in giving each user a lot of... read more
Leave a Reply