Hi.
I am struggling with something I never thought would be an issue.
I’m trying to develop a 3 level drop down menu in as3 and I am connected to a database where all the menu items are stored. I am getting the stored data with the help of amfphp.
I naively assumed I could just run the data I got from the database in some for loops and have the following structure:
Topmenu1[INDENT] Submenu1
[/INDENT][INDENT] Submenu2
[/INDENT][INDENT][INDENT] SubSubmenu1
[/INDENT][/INDENT][INDENT][INDENT] SubSubmenu2
[/INDENT][/INDENT]Topmenu2[INDENT] Submenu1
[/INDENT][INDENT] Submenu2
[/INDENT]Etc.
The top menus have a parent_id = 0. The submenus have parent_id = its parents id and so on.
Could anyone please help me out of this pickle?
Cordially
Vayu