In a high traffic application, is it possible for mysqli_insert_id() to return the wrong id, or to confuse the id between two INSERT queries performed nearly simultaneously?
In a high traffic application, is it possible for mysqli_insert_id() to return the wrong
Share
No.
mysqli_insert_idreturns the most theAUTO_INCREMENTvalue from the most recentINSERTquery on the current connection. It will never get confused with another connection, for example.