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;
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
Best method to change Laravel's default timestamps: Step 1: Override const in specific... read more
Below code can be helpful $this->response->file($this->DIR.$file, array('download' => true, 'name' => "$file")); read more
"There may be several other possible ways, but I know one simple... read more
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
With our data increasingly moving to the cloud, chances are that whenever... read more
Leave a Reply