Page 1 of 1
Tree Menu
Posted: Tue Feb 01, 2005 4:44 pm
by groovster
Hi!
I'm trying to find out how to create a tree menu using mysql database.
I have categories and subcategories.
I want to create a tree menu that the subcategories goes under the category and it shows it self when i click on the category.
Please please someone, HELP MEEE!

Posted: Tue Feb 01, 2005 4:56 pm
by neophyte
It's all about your database stucture. Once that is right it's easy to build. Then you need to have a couple of variables that keep track of what category and subcategory you are on. Those variables are then past from page to page in a session cookie or in a query string. I've done it once now, but I'm no expert. That's the basic idea of it.
Good luck...
Posted: Wed Feb 02, 2005 3:23 am
by CoderGoblin
http://www.htmldog.com/ptg/archives/000050.php is one method of display. Once you have the menu path set up in the db. A couple of methods are described here:
http://www.sitepoint.com/print/1105
Nope
Posted: Wed Feb 02, 2005 2:29 pm
by groovster
This did not solve my problem. Let med show you an example:
I have my Monitor for sale and it is a 17" CRT monitor. In the database it looks like this:
Category Monitor
Subcat CRT
Item 19" Samsung
On my tree menu i want to see the Category first. When i click on it the subcategory displayes and on click on the CRT I want it to show the item in that subcat.
THX
Groovster
Posted: Wed Feb 02, 2005 8:39 pm
by feyd
I have posted multiple times on ways to create a tree.. please search.