nightcrawler Posted May 2, 2007 Share Posted May 2, 2007 Does this line look right? $query = "SELECT * FROM articles ORDER BY DESC LIMIT 3"; Link to comment https://forums.phpfreaks.com/topic/49675-solved-syntax-for-limit-query/ Share on other sites More sharing options...
clown[NOR] Posted May 2, 2007 Share Posted May 2, 2007 no.. you need to tell the query what to order by.. for example $query = "SELECT * FROM articles ORDER BY date DESC LIMIT 3"; Link to comment https://forums.phpfreaks.com/topic/49675-solved-syntax-for-limit-query/#findComment-243538 Share on other sites More sharing options...
nightcrawler Posted May 2, 2007 Author Share Posted May 2, 2007 thanks Link to comment https://forums.phpfreaks.com/topic/49675-solved-syntax-for-limit-query/#findComment-243554 Share on other sites More sharing options...
clown[NOR] Posted May 2, 2007 Share Posted May 2, 2007 no problem.. remember to mark topic as solved Link to comment https://forums.phpfreaks.com/topic/49675-solved-syntax-for-limit-query/#findComment-243576 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.