RE: [PHP] Subcategories in php
| From: | Chris W. Parker | Date: | Mon, 22 Sep 2003 23:50:08 +0000 |
| Subject: | RE: [PHP] Subcategories in php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163528@lists.php.net to get a copy of this message | ||
phpu <mailto:phpu@go.ro>
on Saturday, September 20, 2003 7:41 AM said:
> I have been trying to do this for weeks but i just cant figure this
> out. I have categories that have subcategories and i want to insert
> them into database.
If you need more than two levels of classification I would suggest you
use a method called Modified Preorder Tree Traversal. You can read about
it here. http://www.sitepoint.com/article/1105
It's a little complicated at first but once you grasp the idea it starts
to make a lot of sense.
Hope this helps.
Chris.