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;
"Add this in your component public function initialize(Controller $controller) { $this->controller = $controller;... 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
Unable to negotiate with 140.211.10.43: no matching key exchange method found. Their... read more
Create a DIR in your laravel app root and name it "myapp", you... read more
Simple structure to pin the flow to developers mind for project IS ... read more
Best method to change Laravel's default timestamps: Step 1: Override const in specific... read more
Following Code is required for that: echo $this->Html->image("your_img.png", array( 'url' => array('controller' => 'some_controller',... read more
"To Fix ""Error Establishing a Database Connection in WordPress"": Open wp-config.php file and... read more
There are certain formal settings (like a conference, meeting or classroom) where... read more
Leave a Reply