php - mysql_insert_id for a query? -


I am trying to add a record to a MySQL database and am retrieving that record ID immediately. I'm looking to use mysql_insert_id (), but I'm wondering if it can drag a very last record or past record that you have entered?

I am thinking that if two users of the website run both queries then the previous record may have been added that if the user does not have the record, then what mysql_insert_id () differentiates between the two or just the last Can I record the record?

Thank you.

have you entered the very last record or final record?

The latter one is clearly on the Manual page of this function

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -