For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > January 2005 > last record









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author last record
Neil

2005-01-25, 3:56 am

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com