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
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
"There may be several other possible ways, but I know one simple... read more
Try "keypress" evenHandler in jQuery: Notice Below Code, Although this code is correct... read more
ERROR - 2017-02-18 14:17:00 --> Could not find the specified $config['composer_autoload'] path:... read more
If you are a victim of Browser Modifier Virus ( malware ) Browser... read more
Below are the steps: 1) Open File Explorer 2) Click on View Tab 3) Click/Check... read more
Fix spanish translations (email sent sep 10) login mods (email sent march 2) add... read more
Screen Got stuck eventually with this error during CodeIgniter development. Fatal error: Class... read more
The character set named utf8 uses a maximum of three bytes per... read more
Leave a Reply