//Edit: Sorry habe mich vertan, ist ja PHP.
Aus der PHP-Doku:
Usage: int mysql_insert_id ( [resource link_identifier ] )
Purpose: Get the ID generated from the previous INSERT operation
Availability: PHP 3, PHP 4
mysql_insert_id()
returns the ID generated for an AUTO_INCREMENT column by the previous INSERT query using the given link_identifier\n\n
<!--EDIT|GwenDragon|1123857627-->