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->session->mark_as_flash('item'); # Version 3.x only $this->session->mark_as_flash(array('item', 'item2')); # Version 3.x only Array... read more
There are certain formal settings (like a conference, meeting or classroom)... read more
Most popular browsers like Google Chrome and Mozilla Firefox allow you... read more
While Google is quite generous in giving each user a lot... read more
The character set named utf8 uses a maximum of three bytes... read more
Fork a Repo. A fork is a copy of a repository.... read more
Simple Syntax: chmod 744 yourfile.ext Below Codes can be helpful to set... read more
BrowserModifier:Win32/Neobar is malware which changes various browser data without notifying you.... read more
Fix spanish translations (email sent sep 10) login mods (email sent march... read more
Below are the steps: 1) Open File Explorer 2) Click on View Tab 3)... read more
Leave a Reply