...

calling 5 recent records

vixtran
10-24-2002, 03:25 AM
I am kinda new at this, matter of fact real new :p I have information in my database I want displayed by the 5 most recent records added on a web page using php. Does anyone know where i can get an example of how to do it or is it simple enough to put it here?

thanks

Spookster
10-24-2002, 03:35 AM
That's easy enough:

SELECT * FROM tablename ORDER BY datefield DESC LIMIT 5

vixtran
10-24-2002, 04:36 AM
THANKS!!!!! your right it was lol I should have known that much :p



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum