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;
ERROR - 2017-02-18 14:17:00 --> Could not find the specified $config['composer_autoload'] path:... read more
It requires two main steps: Add Virtual Host Entries to vhosts Configuration file. Assign... read more
"To Fix ""Error Establishing a Database Connection in WordPress"": Open wp-config.php file and... read more
One of the reasons why smart phones have become so popular is... read more
Below code can be helpful $this->response->file($this->DIR.$file, array('download' => true, 'name' => "$file")); read more
Following Code is required for that: echo $this->Html->image("your_img.png", array( 'url' => array('controller' => 'some_controller',... read more
While Google is quite generous in giving each user a lot of... read more
There are certain formal settings (like a conference, meeting or classroom) where... read more
Leave a Reply