RE: [PHP] mysql auto increment question
| From: | Van Andel, Robbert | Date: | Fri, 07 Feb 2003 17:34:39 +0000 |
| Subject: | RE: [PHP] mysql auto increment question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-134761@lists.php.net to get a copy of this message | ||
Thanks, I knew there was a function like this, but couldn't for the life of me remember what it
was or find it.
Robbert van Andel
-----Original Message-----
From: Jon Haworth [mailto:jhaworth@witanjardine.co.uk]
Sent: Friday, February 07, 2003 9:28 AM
To: Van Andel, Robbert; php-general@lists.php.net
Subject: RE: [PHP] mysql auto increment question
Hi Robbert,
> Is there an easy way to find out what the auto_incremented
> number is so I can use it to update the other table?
Sure, have a look at mysql_insert_id:
http://php.net/mysql_insert_id
Cheers
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php