RE: [PHP] mysql auto increment question

2003-02-07 Thread Van Andel, Robbert
bject: 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

RE: [PHP] mysql auto increment question

2003-02-07 Thread Jon Haworth
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.p

Re: [PHP] mysql auto increment question

2001-01-24 Thread Pavel Jartsev
David Banning wrote: > > I am working with php-mysql > and am inserting into mysql using a NULL value, > which allows mysql to auto-insert (increment) > a number - how could I find out what the value was > mysql inserted, say on the next line of code after the insert? http://www.php.net/manual/e