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
A recent research report has revealed that more than 90% of all... 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
How to check laravel version: Step1: Find Application.php file in your app and... read more
This can be achieved using a single query with join. We can... read more
Simple structure to pin the flow to developers mind for project IS ... read more
Major Differences are: Git and Mercurial are the two most popular Distributed Version... read more
There are certain formal settings (like a conference, meeting or classroom) where... read more
Leave a Reply