RE: [PHP-DB] LAST_INSERT_ID()
| From: | Rick Emery | Date: | Thu, 21 Mar 2002 20:29:05 +0000 |
| Subject: | RE: [PHP-DB] LAST_INSERT_ID() | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-17819@lists.php.net to get a copy of this message | ||
I mean:
mysql_insert_id()
-----Original Message-----
From: Rick Emery [mailto:remery@excel.com]
Sent: Thursday, March 21, 2002 2:28 PM
To: 'Morten Nielsen'; php-db@lists.php.net
Subject: RE: [PHP-DB] LAST_INSERT_ID()
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
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php