Re: mysql thing

From: Date: Tue, 28 Dec 1999 16:23:51 +0000
Subject: Re: mysql thing
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-8594@lists.php.net to get a copy of this message
"David Moreno S." wrote: > > i'm using php4.03 b with apache and mysql in linux 6.0, > > i have a question is there any way to make and insert operation and get the > result of that operation at once. > > I mean i'm doing a insert into a table that has a auto_increment column, how > can i insert and get the value of that column for the new record? > > thanks > > David Moreno > > -- > mysql_insert_id() will return the value of the last auto_increment id. -- Sasha Pachev http://www.sashanet.com

« previous php.version4 (#8594) next »