Hello Angelo,

Monday, March 1, 2004, 1:18:51 PM, you wrote:

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

AZ> run a query:
AZ> select query from table order by id desc

Why waste time running another query? Get the value from
mysql_insert_id() instead.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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

Reply via email to