Jump to content

[SOLVED] Setting up a menu


thomashw

Recommended Posts

I'm going to have a menu on the left column on my website in which I want to use my database for. I'm having trouble thinking of how to set this up in my database. I want each menu item to have a url like this: index.php?category_id=...

 

The menu is structured like this:

 

menu.gif

 

So when menu 1 is clicked on, I'll need the submenu's to show. And when the submenu's are clicked on, I'll need the subsubmenu's to show. This structure is duplicated for menu 2, menu 3, etc. The reason I want to use the database is because I'll have so many menu's, submenu's, and subsubmenu's that it will take forever to make/edit/change them if I want to.

 

When I say "show" I don't mean a pop-up menu. I mean it goes to the next page with the submenu links showing.

 

I'm wondering if anyone has any ideas as to how to set up my database/a way to code this that I'm not thinking of?

 

Thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/84892-solved-setting-up-a-menu/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.