adman4054 Posted June 9, 2013 Share Posted June 9, 2013 Hi -- I cant figure out how to sort/order this query. I'd like to display the category alphabetically. "SELECT category.* FROM categorylisting LEFT JOIN category ON categorylisting.categoryid = category.categoryID WHERE categorylisting.listingid = '$listID' AND category.parentID = '86608'"; Thank you Quote Link to comment Share on other sites More sharing options...
Solution Barand Posted June 9, 2013 Solution Share Posted June 9, 2013 (edited) add ORDER BY category to the end of your current query see http://dev.mysql.com/doc/refman/5.6/en/select.html Edited June 9, 2013 by Barand Quote Link to comment Share on other sites More sharing options...
adman4054 Posted June 9, 2013 Author Share Posted June 9, 2013 thanks! 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.