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
A recent research report has revealed that more than 90% of all... read more
$this->session->mark_as_flash('item'); # Version 3.x only $this->session->mark_as_flash(array('item', 'item2')); # Version 3.x only Array to... read more
The regex caused the error during validation check on Alphaspace Rules regular... read more
If you are a victim of Browser Modifier Virus ( malware ) Browser... read more
Fork a Repo. A fork is a copy of a repository. Forking... read more
Unable to negotiate with 140.211.10.43: no matching key exchange method found. Their... read more
Create a DIR in your laravel app root and name it "myapp", you... read more
As per official bootstrap documentation about "sr-only CSS class":
This can be achieved using a single query with join. We can... read more
Leave a Reply
You must be logged in to post a comment.