ngreenwood6 Posted December 17, 2008 Share Posted December 17, 2008 I have to pull some data from the database. I only want it to show the latest 5 results. I have a timestamp in the database when it was entered. Can someone please help me? I know that I can do a limit 0,4 and it will only give me 5 but how can I make it give me the 5 newest. Link to comment https://forums.phpfreaks.com/topic/137416-solved-limiting-the-results/ Share on other sites More sharing options...
premiso Posted December 17, 2008 Share Posted December 17, 2008 ORDER BY timestamp column. Link to comment https://forums.phpfreaks.com/topic/137416-solved-limiting-the-results/#findComment-718028 Share on other sites More sharing options...
ngreenwood6 Posted December 17, 2008 Author Share Posted December 17, 2008 thanks I am kinda slow today lol. Link to comment https://forums.phpfreaks.com/topic/137416-solved-limiting-the-results/#findComment-718029 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.