Log in

View Full Version : Tree Menus from a database...



GITs
11-10-2006, 09:54 AM
Hi all, I have a project at the moment where I require to generate a Tree Menu from a database, I know how to make the Tree Menu work, by setting the display style property of a div, but I am having trouble with generating the tree from a database... Each item in the database has an ID number, and it also has a record of what its parent node is, but how do I generate the tree structure? any ideas/help/codes would be very much appreciated as I am absolutely stumped... If you need extra information, please post :)

Thanks in advance
Martyn

takuya
09-20-2007, 10:38 PM
Did you ever find an answer to this? I am in the same boat. Does anyone have any scripts or places that I can start looking for this?

I am actually trying to make a dynamic product table where there are about 25 parent product categories with multiple products in each with multiple features/options for each product. I need to list these out dynamically from the database and AJAX seems the best way to go and I would like to do it in a tree menu. The products and options/features will be selectable and then passed on to a 'proposal' record that will end up going into the database as well. Any ideas for that, if its fundamentally different than a tree menu?