I have a table which has categories, for example, ties, coats, pants.
What I want in the end is to have it display like the example below. I had this working using seperate queries for each category, but since in my real environment there are 8 categories, that is a lot of strain on the DB when your getting 100,000+ hits to the page a day. I want to do this using one query, and arrive at the same format as listed below.
I can't even begin to explain what I have tried, but nothing has worked so really isn't even worth mentioning. How do I go about this, as I am lost as how to do this.
Thanks for any input.
Ties
Black
Red
Blue
Pants
Short
Long
Dress
Coats
Winter
Summer
Spring