RE: [PHP-DB] NewB: Return New Record ID...
| From: | USA) | Date: | Thu, 05 Dec 2002 20:06:27 +0000 |
| Subject: | RE: [PHP-DB] NewB: Return New Record ID... | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-23850@lists.php.net to get a copy of this message | ||
mysql_insert_id if your using mysql
... most other ones you'll have to select max(id) from table after your insert.
<>< Ryan
-----Original Message-----
From: Doug Coning [mailto:lists@coning.com]
Sent: Thursday, December 05, 2002 2:04 PM
To: php-db@lists.php.net
Subject: [PHP-DB] NewB: Return New Record ID...
Hi all,
How do I do this:
I need a PHP page that simply creates a "blank" record so that I have the
record's ID (which is automatically generated). That same page then needs
to return the record ID back so that I know what the ID is. I will later
allow that record's information to be populated based on the ID it first
returned.
How would I do this?
Thank you, thank you!
Doug Coning
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php