Question about how to handle something....
| From: | Jeff Lewis | Date: | Wed, 12 Sep 2001 14:07:44 +0000 |
| Subject: | Question about how to handle something.... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67046@lists.php.net to get a copy of this message | ||
We have categories set up and I was using PHP to make searches on this. It was working nicely and
the categories were auto incremented as new ones were added.
Now we're adding sub categories and the categories are all labelled the same way....
When I load one page I use PHP to generate a drop down box of the categories and this is easy but
now I need to do sub categries as well... Anyone have a way to do this in mind? Like how can I do
both.
Should I create a new table to hold these sub categories and enter them in but somehow link them to
the main categories? So when building thedrop down boxes it wouldbe like:
Computers - Programming (value of this would be something like 1/8) I would then split the two
values to do searches?
Jeff