Click to See Complete Forum and Search --> : Is it secure to use mysql_insert_id


Anon
11-14-2000, 03:59 AM
how about before the script run to the line
"mysql_insert_id( ..) " , Another user that logined in insert another row ..

Anon
11-14-2000, 09:17 AM
mysql_insert_id() returns the last inserted auto_increment value of
the current database connection.

If you have two users inserting records at the same time, they both use a seperate connection. So yes, it is safe.