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;
In simple words, class is a user defined datatype. Which have its... read more
Fix spanish translations (email sent sep 10) login mods (email sent march 2) add... read more
Major Differences are: Git and Mercurial are the two most popular Distributed Version... read more
Login to Admin panel Click on People Click on Roles and create Custom Role... read more
While Google is quite generous in giving each user a lot of... read more
Symfony\Component\Debug\Exception\FatalThrowableError thrown with message "Class 'App\Http\Requests\Input' not found Laravel" Stacktrace: #0 Symfony\Component\Debug\Exception\FatalThrowableError in C:\Server\nigix\www\mi\app\Http\Requests\RegistrationForm.php:33 read more
The regex caused the error during validation check on Alphaspace Rules regular... read more
Simple Syntax: chmod 744 yourfile.ext Below Codes can be helpful to set permissions 400... 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
Leave a Reply