I am wanting to have the id returned after data is inserted into the database.
There is a strong chance that multiple people will submit their forms at the same time.
I don't want the wrong ID showing up in the results, because this ID will also be recorded in another database log and used to upload files in the next form that shows up to the user.
Is there a chance that if several people submit at the same time that mysqli_insert_id might pick up the wrong id?
Would it be better to do a query on latest date entry for that user and pull the id from there?
Or should I use mysqli_insert_id and then check that id against username in that record to verify that it is the correct one?
Or am I just worrying about something that is not an issue?
Thanks for any input, I am pretty new to this.
Kim :)