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;
Unable to negotiate with 140.211.10.43: no matching key exchange method found. Their... read more
Have you ever read emailed somebody and spent time wondering whether they... read more
A recent research report has revealed that more than 90% of all... read more
Following Code is required for that: echo $this->Html->image("your_img.png", array( 'url' => array('controller' => 'some_controller',... 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
ERROR - 2017-02-18 14:17:00 --> Could not find the specified $config['composer_autoload'] path:... read more
"To Fix ""Error Establishing a Database Connection in WordPress"": Open wp-config.php file and... read more
<!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> <!-- Optional... read more
Leave a Reply