In other words, if user A does an update query, and then instantaneously user B also does an update query, then the function mysql_insert_id() is executed at user A, what result does it give? Does mysql_insert_id() at user A get the last insert id of that user or of user B?