Re: getting auto-incrementing fields

From: Date: Fri, 13 Jul 2001 06:33:00 +0000
Subject: Re: getting auto-incrementing fields
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57692@lists.php.net to get a copy of this message
Brad Wright wrote: > > Hi all, > I have a situation where I am adding a new row to a (mySQL) table. One of > the fields in table is auto-incrementing. When I add a new row, I would like > to return the value of the auto-incrementing field (named 'Number') as > $Number for the new row. > > Can anyone help?? Maybe this helps: http://www.php.net/manual/en/function.mysql-insert-id.php -- Pavel a.k.a. Papi

« previous php.general (#57692) next »