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? Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.