Angelo Zanetti wrote:
run a query:

select query from table order by id desc

hope this helps

-----Original Message-----
From: Brian Dunning [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 6:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] How to get the auto-incremented value?


When I write a record to a MySQL db with an auto-incremented key column, say it's called "id", what's the easy to retrieve that value? Do I have to run a query?



http://www.php.net/manual/en/function.mysql-insert-id.php


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to