In php, I have a bit of code that runsusing the mysql_query($sqlquery) function.Code:INSERT INTO tbl_name (stuff,things) VALUES ('23','45')
The table has an additional column called "id" which is an auto incremental index.
Is there a way to get the index of this newly added row? I need the index so I can have something in an events table that basically says "Item 2 was added 2012/2/6."




Base 2
Reply With Quote
