Welcome Guest, Not a member yet? Register   Sign In
Id of last insert
#1

[eluser]sherwoodforest[/eluser]
I tried
$insert_id = $this->db->insert('change',$data);

but all I get back is 1 for the insert_id
what I want is the primary key for the row I just inserted


Messages In This Thread
Id of last insert - by El Forum - 07-09-2009, 12:31 PM
Id of last insert - by El Forum - 07-09-2009, 12:41 PM
Id of last insert - by El Forum - 07-09-2009, 12:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB