ohdang888 Posted December 26, 2007 Share Posted December 26, 2007 what do i put in my mysql_query inorder to have all the results in alphabetical order?????? Quote Link to comment https://forums.phpfreaks.com/topic/83280-solved-ordering-mysql-query-results/ Share on other sites More sharing options...
revraz Posted December 26, 2007 Share Posted December 26, 2007 ORDER by fieldname ASC Quote Link to comment https://forums.phpfreaks.com/topic/83280-solved-ordering-mysql-query-results/#findComment-423687 Share on other sites More sharing options...
tinker Posted December 26, 2007 Share Posted December 26, 2007 For a bit more: SELECT * FROM t1 ORDER BY key_part1 DESC, key_part2 ASC; see this. Quote Link to comment https://forums.phpfreaks.com/topic/83280-solved-ordering-mysql-query-results/#findComment-423689 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.