last record
| From: | neil | Date: | Tue, 25 Jan 2005 03:12:01 +0000 |
| Subject: | last record | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-38309@lists.php.net to get a copy of this message | ||
Apart from the obvious of reversing the sort order in a select statement and
then picking off the first record
eg. select * from blah where somefield like '%something%' order by
someotherfield desc limit 0,1
is there any way in php rather than sql to pick the last record in a record
set?
Thanks
Neil