[PHP-DB] Re: get the record id of the last addition in a table From: Mad Nas (m581 <email protected>)
Date: 11/27/01

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 <email protected>> wrote in message
news:615315231286D21182E40008C7B1EED23C6EFF <email protected>
> 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
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>