PHP MYSQL INSERT Question
Posted on 2004-10-01
ok this is a long shot...
i am inserting a row into a table. the table has an auto-id field.
is there a way to get the auto-id assigned to this record from the insert. does the insert return anything other than true/false or are there any other functions i can run on the query to get the value that has been assigned.
i want to basically be able to get the value of the ID field without having to requery the database.
the information i am inserting could be the same but the id will always be different. so i could have multiple rows of data that looks the same but the id is different for each.