I am building a directory of local businesses. As well as the bog standard directory info, there are 18 checkboxes for them to tick for the category of their business. The complicated bit (for me!) is that they can tick multiple boxes...
I need to be able to display lists based on category or area, and pages on specific companies which show their categories.
The two ways I can think of doing it, are: (1) a field for each category, but this would bloat the database, and make coding the pages a headache, as I'd have to repeat everything.
(2) a few fields for 1st, second, third, fourth category. This would mean I could code the pages with less faff, but I'd still have to duplicate the code for each field. And I'd have to limit the number of categories people could go for...
anyone with more PHP/MySQL nouse got any better ideas?