Re: get the record id of the last addition in a table

From: Date: Tue, 27 Nov 2001 09:33:23 +0000
Subject: Re: get the record id of the last addition in a table
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-14684@lists.php.net to get a copy of this message
Hi Jean-Louis If you use from mysql database function in php, you can use from function mysql_insert_id after using query "insert ....". "Jean-Louis Letortorec" <JLeTortorec@healthcore.com> wrote in message news:615315231286D21182E40008C7B1EED23C6EFF@COMPAQ3000... > Hi: > > I've created a table. The fields are "id" (auto-increment, integer), > "field1","field2),... > > When I do "insert into mytable (field1..) values (...)", how to get in > return the value of "id"? > > Thanks > > > > Jean-Louis >

« previous php.db (#14684) next »