Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.