Posts: 2,337
Name: Keith Marshall
Location: West Hartford, CT
|
I'm with Solomongaby about the idea of unlimited categories. If you already have a table in your database that connects the business to a parent category, just create another table that cross references sub-categories to parent categories.
For instance, if you might have a category_to_parent_category list such as:
category_id => 1, parent_category_id => NULL (top-level cat)
category_id => 2, parent_category_id => NULL (top-level cat)
category_id => 3, parent_category_id => 1 (child of cat 1)
category_id => 4, parent_category_id => 1 (child of cat 1)
category_id => 5, parent_category_id => 2 (child of cat 2)
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|