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;
This can be achieved using a single query with join. We can... read more
"There may be several other possible ways, but I know one simple... read more
Have you ever read emailed somebody and spent time wondering whether they... read more
Screen Got stuck eventually with this error during CodeIgniter development. Fatal error: Class... read more
Fork a Repo. A fork is a copy of a repository. Forking... read more
"Add this in your component public function initialize(Controller $controller) { $this->controller = $controller;... read more
Unable to negotiate with 140.211.10.43: no matching key exchange method found. Their... read more
Most popular browsers like Google Chrome and Mozilla Firefox allow you to... read more
BrowserModifier:Win32/Neobar is malware which changes various browser data without notifying you. Windows... read more
Leave a Reply