SELECT * FROM mytable ORDER BY some_field DESC LIMIT 1;

-----Original Message-----
From: Ron [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 7:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Return the last record on database


My database has several records an ID is the primary key

I want to diplay output using PHP to a table (no biggy)

The problem for me is I just want the record of the database to be
displayed!!!



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

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

Reply via email to