Omar Alhadidy Omar Alhadidy - 1 year ago 103
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..

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download