get the record id of the last addition in a table
| From: | LeTortorec, Jean-Louis | Date: | Mon, 26 Nov 2001 22:21:50 +0000 |
| Subject: | get the record id of the last addition in a table | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14582@lists.php.net to get a copy of this message | ||
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