[eluser]Clooner[/eluser]
Hello everybody.
I'm using CI for a while now and I really like it. I made some applications with it already. I'm working on a larger site right now and need to get the last inserted id. I am using active records but no id is returned. What is a possible problem? The data is inserted correct.
Code:
function AddAdres($data)
{
$this->db->insert("adres", $data);
return $this->db->insert_id();
}
For the database I created a ID which is auto_increment and primary key.
I'm using CI 1.5.4, PHP 4.3.10 and mysql 4.1.9
Hope someone has an answer.
Thank you.