Thread INSERT Statement per mysql_query: auto_increment ID (7 answers)
Opened by vayu at 2005-08-12 17:34

GwenDragon
 2005-08-12 17:56
#10227 #10227
User since
2005-01-17
14538 Artikel
Admin1
[Homepage]
user image
//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-->
die Drachin, Gwendolyn


Unterschiedliche Perl-Versionen auf Windows (fast wie perlbrew) • Meine Perl-Artikel

View full thread INSERT Statement per mysql_query: auto_increment ID