I am trying to add a record to a mysql database and retrieve that records id immediately after. I am looking to use mysql_insert_id() however I am wondering does it pull the very last record or the last record you have inserted?
What i’m thinking if two users of the website both run querys then the last record added may not be that users record, so does mysql_insert_id() differentiate between the two or just pull the last record?
Thanks.
a latter one. it is clearly stated on this function’s manual page