Google

NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.73 ">

mysql_insert_id

(PHP 3, PHP 4 )

mysql_insert_id --  Retourne l'identifiant généré par la dernière requête INSERT.

Description

int mysql_insert_id ( [resource link_identifier])

mysql_insert_id() retourne le dernier identifiant généré par un champs de type AUTO_INCREMENT, sur la connexion MySQL courante, ou bien sÛr la connexion spécifiée par link_identifier. mysql_insert_id() ne prend aucun argument. Elle retourne le dernier identifiant généré par la dernière fonction INSERT effectuée.