Are there any options to get the last insert id of a new record in CodeIgniter?
$last_id = $this->db->insert('tablename',
array('firstcolumn' => 'value',
'secondcolumn' => 'value')
Shame on me...
I looked at the user guide and the first function is
This also works with activerecord inserts...
EDIT: I updated the link