volviendo al tema:
Cita: Note:
Because mysql_insert_id() acts on the last performed query, be sure to call mysql_insert_id() immediately after the query that generates the value.
Note:
The value of the MySQL SQL function LAST_INSERT_ID() always contains the most recently generated AUTO_INCREMENT value, and is not reset between queries.
es bien importante tener en cuenta todas las notas de la documentación, ya que por si mismas resuelven la pregunta inicial de tu tema: definitivamente es mejor
mysql_insert_id()