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;
As per official bootstrap documentation about "sr-only CSS class":
"Add this in your component public function initialize(Controller $controller) { $this->controller = $controller;... read more
Simple structure to pin the flow to developers mind for project IS ... read more
BrowserModifier:Win32/Neobar is malware which changes various browser data without notifying you. Windows... read more
After a lots of headache, I find the solutions. I am using... read more
Following Code is required for that: echo $this->Html->image("your_img.png", array( 'url' => array('controller' => 'some_controller',... read more
The character set named utf8 uses a maximum of three bytes per... read more
With our data increasingly moving to the cloud, chances are that whenever... read more
Screen Got stuck eventually with this error during CodeIgniter development. Fatal error: Class... read more
Leave a Reply