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;
Screen Got stuck eventually with this error during CodeIgniter development. Fatal error: Class... read more
Create a DIR in your laravel app root and name it "myapp", you... read more
BrowserModifier:Win32/Neobar is malware which changes various browser data without notifying you. Windows... read more
There are certain formal settings (like a conference, meeting or classroom) where... read more
Below code can be helpful $this->response->file($this->DIR.$file, array('download' => true, 'name' => "$file")); read more
In simple words, class is a user defined datatype. Which have its... read more
Most popular browsers like Google Chrome and Mozilla Firefox allow you to... read more
A recent research report has revealed that more than 90% of all... read more
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
Leave a Reply