mysql_insert_id
Posted: Fri Mar 24, 2006 7:21 pm
ok So I have a lot of code that will validate inserted information and then insert it to the database. I am going to use mysql_insert_id() to get my infomation but I dont know much about it. I was wondering if maybe this function would return a ID that was old.
This is to say mabybe 2 or more people inserted somthing at the exact same time. If they did, would this function still work? I need this function to be able to insert to serveral tables but I need to be sure that this ID is correct without any ability of failure. Baically all I ask is...if I do a insert then do a mysql_insert_id() call is it possible to get invalid information?
This is to say mabybe 2 or more people inserted somthing at the exact same time. If they did, would this function still work? I need this function to be able to insert to serveral tables but I need to be sure that this ID is correct without any ability of failure. Baically all I ask is...if I do a insert then do a mysql_insert_id() call is it possible to get invalid information?