2010-08-13 5 views

Répondre

4

Vous pouvez utiliser cette fonction: mysql_insert_id() - Retourne l'identifiant généré par la dernière requête

mysql_query("INSERT INTO mytable (product) values ('kossu')"); 
printf("Last inserted record has id %d\n", mysql_insert_id()); 

Plus d'info here