Date: 11/27/01
- Next message: Ian: "Re: [PHP-DB] db connect problems."
- Previous message: jani mikkonen: "[PHP-DB] mysql pconnect voes"
- In reply to: LeTortorec, Jean-Louis: "[PHP-DB] get the record id of the last addition in a table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Ian: "Re: [PHP-DB] db connect problems."
- Previous message: jani mikkonen: "[PHP-DB] mysql pconnect voes"
- In reply to: LeTortorec, Jean-Louis: "[PHP-DB] get the record id of the last addition in a table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

