PHP mysql_insert_id

The mysql_insert_id() function returns the AUTO_INCREMENT ID generated from the previous INSERT operation.

Syntax

mysql_insert_id($connectionlink);

You can refer this link http://qualitypointtech.net/forum/viewtopic.php?f=25&t=365 for knowing more about this function and example.

Posted in Php