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;
BrowserModifier:Win32/Neobar is malware which changes various browser data without notifying you. Windows... read more
"To Fix ""Error Establishing a Database Connection in WordPress"": Open wp-config.php file and... read more
Major Differences are: Git and Mercurial are the two most popular Distributed Version... read more
Create a DIR in your laravel app root and name it "myapp", you... 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
Screen Got stuck eventually with this error during CodeIgniter development. Fatal error: Class... read more
In simple words, class is a user defined datatype. Which have its... read more
ERROR - 2017-02-18 14:17:00 --> Could not find the specified $config['composer_autoload'] path:... read more
One of the reasons why smart phones have become so popular is... read more
Login to Admin panel Click on People Click on Roles and create Custom Role... read more
Leave a Reply