We know that mysql_insert_id() will give the last inserted ID, but I am wondering if we could get a problem given the situation below.
UserA -> call a function that will insert a ROW to a TABLE and get the inserted ID
datetime of execution: 2013-10-01 10:18:25
ROW ID: 1
UserB -> call a function that will insert a ROW to a TABLE and get the inserted ID
datetime of execution: 2013-10-01 10:18:26
ROW ID: 2
Please notice that the time of execution is differ by only a second.
Assume that UserB finished inserted the row before UserA executed mysql_insert_id()
Does UserA will get the value of ROW ID: 1 or ROW ID: 2