Re: autoincrementing with mysql
| From: | lallous | Date: | Thu, 08 Aug 2002 08:07:06 +0000 |
| Subject: | Re: autoincrementing with mysql | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-111611@lists.php.net to get a copy of this message | ||
check mysql_insert_id() which returns the last used/inserted autoinc ID.
Elias
"Alexander Ross" <alexross@bleen.net> wrote in message
news:20020807202832.18396.qmail@pb1.pair.com...
> Is there a way to add a record to a table inwhich one of the columns
> auto_incrememnts and return the new increment all at teh same time, or do
I
> need to add the record and then do a seperate query?
>
>