jigsawsoul Posted March 24, 2010 Share Posted March 24, 2010 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DESC LIMIT 0, 4' at line 1 $result = "SELECT * FROM products ORDER BY DESC LIMIT 0, 4"; Any help please? Link to comment https://forums.phpfreaks.com/topic/196388-order-by-and-limit-error/ Share on other sites More sharing options...
Catfish Posted March 24, 2010 Share Posted March 24, 2010 ORDER BY *what*? change ORDER BY DESC LIMIT 0,4 to ORDER BY fieldName DESC LIMIT 0,4 Link to comment https://forums.phpfreaks.com/topic/196388-order-by-and-limit-error/#findComment-1031201 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.