Category Listing
| From: | Paul B. \[pbcomm, aka WPD\] | Date: | Mon, 22 Sep 2003 03:09:43 +0000 |
| Subject: | Category Listing | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-30602@lists.php.net to get a copy of this message | ||
Hi, i'm working on the site that involves a lot ot categories and subs there
of ... The way i have things now is that the structure goes one sub deep ...
Ex:
PHP -> Database
PHP -> Books
in the DB it looks like:
id 1 name PHP parent 0
id 2 name Database parent 1
this way its easy to show dinamicaly where the user is (PHP: Database) by
prividing
index.php?dir=1&sub=1.
What i want to do, is go 3 or 4 subs deep. I just wanted to get an idea on
the best posible way of doing this.
Thanks
Paul B.