Welcome Guest, Not a member yet? Register   Sign In
How to fetch the Id of the previously added record
#1

[eluser]skillfullbus[/eluser]
Hi All,
I am making a registration page wherein the data entered by the user would go into two different tables in the database.

Now the second table has User Id as a foreign key to the User table (1st table) primary key which is auto increment.

Now while adding data to the 2nd table I need the primary key of the user table (1st table). How do I get it? Pl help.

Thanks !


Messages In This Thread
How to fetch the Id of the previously added record - by El Forum - 12-03-2009, 01:03 AM
How to fetch the Id of the previously added record - by El Forum - 12-03-2009, 01:36 AM
How to fetch the Id of the previously added record - by El Forum - 12-03-2009, 02:33 AM
How to fetch the Id of the previously added record - by El Forum - 12-03-2009, 09:03 AM
How to fetch the Id of the previously added record - by El Forum - 12-04-2009, 05:47 AM
How to fetch the Id of the previously added record - by El Forum - 12-04-2009, 07:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB