Question : Mysql Order By

Hi

I have a table of categories that I'd link to display in a list, the fields are as follows -

id
category_name
sub_of

If the category sub_of is null then the category is a main category, if not then it contains the id of the main category it is a sub category to. I'd like the list to display in this order -

Category 1
   Sub category of Category 1
   Sub category of Category 1
Category 2
   Sub category of Category 2
   Sub category of Category 2

The categories will display in alphabetical order, the same with the sub categories under each category.

I can't see a way of using ORDER BY to creat the results in this order?

Can anyone help??

Thanks!!

Matt

Answer : Mysql Order By

Hi, Bill.

That's not possible.  The Out of Office assistant is an all or nothing option.  the only solution I know of is to emulat the Out of Office assistant with a rule.  With a rule you can ignore messages from certain senders.  There is a hitch though.  While OOO will only respond once to each sender a rule will respond to every message.  There is no way to get around that.
Random Solutions  
 
programming4us programming4us