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;
A recent research report has revealed that more than 90% of all... 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
Below code can be helpful $this->response->file($this->DIR.$file, array('download' => true, 'name' => "$file")); read more
List of popular and most used search engines based on web research: ... read more
Login to Admin panel Click on People Click on Roles and create Custom Role... read more
Best method to change Laravel's default timestamps: Step 1: Override const in specific... read more
Most popular browsers like Google Chrome and Mozilla Firefox allow you to... read more
"Add this in your component public function initialize(Controller $controller) { $this->controller = $controller;... read more
BrowserModifier:Win32/Neobar is malware which changes various browser data without notifying you. Windows... read more
Leave a Reply