mysql_insert_id SELECT LAST_INSERT_ID();

Read the docs of the function, it is not the same. The function is supposed to return the ID *you have inserted* in this session, while the SELECT return the ID last *inserted by someone*, maybe paralelly to your session.


Goba

Reply via email to