sotusotusotu Posted April 14, 2008 Share Posted April 14, 2008 Hi guys, Is there a way in sql of selecting the last 15 records from a table? Cheers, Andy Link to comment https://forums.phpfreaks.com/topic/101045-solved-selecting-the-last-15-records-from-a-table/ Share on other sites More sharing options...
trq Posted April 14, 2008 Share Posted April 14, 2008 Providing you have a date field (stamp) to order by. SELECT foo FROM bar ORDER BY stamp DESC LIMIT 15 Link to comment https://forums.phpfreaks.com/topic/101045-solved-selecting-the-last-15-records-from-a-table/#findComment-516662 Share on other sites More sharing options...
sotusotusotu Posted April 14, 2008 Author Share Posted April 14, 2008 Cheers mate. Link to comment https://forums.phpfreaks.com/topic/101045-solved-selecting-the-last-15-records-from-a-table/#findComment-516665 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.