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
The regex caused the error during validation check on Alphaspace Rules regular... 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
"Add this in your component public function initialize(Controller $controller) { $this->controller = $controller;... read more
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
The character set named utf8 uses a maximum of three bytes per... read more
After a lots of headache, I find the solutions. I am using... read more
BrowserModifier:Win32/Neobar is malware which changes various browser data without notifying you. Windows... read more
If you are a victim of Browser Modifier Virus ( malware ) Browser... read more
Leave a Reply