Omar Alhadidy Omar Alhadidy - 8 months ago 55
MySQL Question

mysqli_insert_id ()

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..

Answer

mysqli_insert_id() is specific to the database connection , it returns the ID of the row which you inserted most recently.