RE: [PHP-DB] LAST_INSERT_ID()

From: Date: Thu, 21 Mar 2002 20:27:43 +0000
Subject: RE: [PHP-DB] LAST_INSERT_ID()
Groups: php.db 
Request: Send a blank email to php-db+get-17817@lists.php.net to get a copy of this message
use mysql_last_id() -----Original Message----- From: Morten Nielsen [mailto:mosgaard2000@hotmail.com] Sent: Thursday, March 21, 2002 2:30 PM To: php-db@lists.php.net Subject: [PHP-DB] LAST_INSERT_ID() Hi, In the PHP manual under the function mysql_insert_id() function they have the following line: The value of the MySQL SQL function LAST_INSERT_ID() always contains the most recently generated AUTO_INCREMENT value, and is not reset between queries. How do I get to use the function LAST_INSERT_ID()? When I use it in my php code it is not recognised. Regards, Morten -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#17817) next »