Omar Alhadidy Omar Alhadidy - 10 months ago 67
MySQL Question

mysqli_insert_id ()

is it safe to use

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


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