Nested Menu and submenu

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
soianyc
Forum Commoner
Posts: 61
Joined: Wed Mar 30, 2005 2:48 pm
Location: NY

Nested Menu and submenu

Post by soianyc »

I have created php code which does a simple loop, It grabs data from a database and outputs accordingly in a table. What i would like to do is add a submenu to this menu. The submenu is created the same way as the menu. What i would like to do is simple, if somebody clicks on a menu link, i want the submenu to appear under that link. Sounds simple enough but im not sure how i should begin.

Regards

soianyc
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the Useful Posts thread (link in signature) has a fairly in-depth "solution" I wrote a while ago. "Creating Menu Tree using PHP and MYSQL"
User avatar
soianyc
Forum Commoner
Posts: 61
Joined: Wed Mar 30, 2005 2:48 pm
Location: NY

Post by soianyc »

Cool, Ill check them out. Thanks
Post Reply