RE: [PHP-DB] Return the last record on database
| From: | Rick Emery | Date: | Fri, 29 Mar 2002 13:33:27 +0000 |
| Subject: | RE: [PHP-DB] Return the last record on database | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-18026@lists.php.net to get a copy of this message | ||
SELECT * FROM mytable ORDER BY some_field DESC LIMIT 1;
-----Original Message-----
From: Ron [mailto:allenr@fwd.areur.army.mil]
Sent: Friday, March 29, 2002 7:39 AM
To: php-db@lists.php.net
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