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:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 9:28 AM
To: Van Andel, Robbert; [EMAIL PROTECTED]
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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to