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

[eluser]Dam1an[/eluser]
You need to use
Code:
$this->db->insert_id();
after making the query for the ID

(I'm assuming you probably get 1 back meaning success, and 0 would mean it failed?)


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