I'm trying to figure out how to list COMPANY 's CATEGORY 's and BRAND 's, where the layout would look similar to this:
COMPANY 1
CATEGORY 1:
BRAND X
BRAND Y
BRAND ZCATEGORY 2
BRAND A
BRAND B
BRAND CCATEGORY 3
BRAND A
BRAND X
I'm not familiar enough with PHP + MySQL to find the right SEARCH and PHP output in order to achieve this.
My table looks similar to this:
COMPANY | CATEGORY | BRAND -------------------------------- Company 1 | Category 2 | Brand A Company 1 | Category 2 | Brand B Company 1 | Category 2 | Brand C Company 1 | Category 1 | Brand X Company 1 | Category 1 | Brand Y Company 1 | Category 1 | Brand Z Company 1 | Category 3 | Brand A Company 1 | Category 3 | Brand X