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;
"if ( $this->input->is_ajax_request() ) { // your code here... }" 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
"There may be several other possible ways, but I know one simple... read more
With our data increasingly moving to the cloud, chances are that whenever... read more
Try "keypress" evenHandler in jQuery: Notice Below Code, Although this code is correct... read more
One of the reasons why smart phones have become so popular is... 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
Below code can be helpful $this->response->file($this->DIR.$file, array('download' => true, 'name' => "$file")); read more
Leave a Reply