Jump to content


Sort output

  • Please log in to reply
1 reply to this topic

#1 ctoshack

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 11 April 2006 - 11:45 PM

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

#2 stephenk

  • Members
  • PipPipPip
  • Advanced Member
  • 62 posts

Posted 12 April 2006 - 11:09 AM

You can do this with the query

SELECT * FROM tblCategory ORDER BY [Fieldname]


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users