问题
is it safe to use mysqli_insert_id()
when the database is heavily used and more than one id maybe inserted in the same time, or it will get only the id that inserted by a query from this user..
回答1:
mysqli_insert_id()
is specific to the database connection , it returns the ID of the row which you inserted most recently.
来源:https://stackoverflow.com/questions/38930704/mysqli-insert-id