According to the PHP documentation,
mysql_insert_id takes the last inserted id from the mysql table.
My question is, if I have a website that inserts more than 2 rows per second to the DB, can I use the
mysql_insert_id and get the correct ID I am referring to in the
INSERT query a line before?
From the MySQL manual:
Short version: it is safe to use.