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;
Try "keypress" evenHandler in jQuery: Notice Below Code, Although this code is correct... read more
"Add this in your component public function initialize(Controller $controller) { $this->controller = $controller;... read more
There are certain formal settings (like a conference, meeting or classroom) where... read more
With our data increasingly moving to the cloud, chances are that whenever... 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
Create a DIR in your laravel app root and name it "myapp", you... read more
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
Below code can be helpful $this->response->file($this->DIR.$file, array('download' => true, 'name' => "$file")); read more
NetBeans FTP Settings Location on Windows NetBeans 19.x and Above The FTP settings file... read more
Leave a Reply