ctoshack Posted April 11, 2006 Share Posted April 11, 2006 In my script as seen below in the admin area I can add whatever categories I wish to add problem is when you add a category it goes to the bottom of the list and the only way to put them into alpha order is to number the sort section to move them. [img src=\"http://www.abidders.com/images/catadd.gif\" border=\"0\" alt=\"IPB Image\" /]These categories are stored in a db.And ouput is generated as show below exactly in the sort order specified in the add category section.[img src=\"http://www.abidders.com/images/catsort.gif\" border=\"0\" alt=\"IPB Image\" /]Is there an easy way that categories could just be added and the output will automatically generate in alpha order from a to z Link to comment https://forums.phpfreaks.com/topic/7155-sort-output/ Share on other sites More sharing options...
stephenk Posted April 12, 2006 Share Posted April 12, 2006 You can do this with the querySELECT * FROM tblCategory ORDER BY [Fieldname]Stephen Link to comment https://forums.phpfreaks.com/topic/7155-sort-output/#findComment-26167 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.