Jump to content

Navigation Menu help


essjay_d12

Recommended Posts

I need to know whats the best way to create a left hand side navigation menu where when you click on a department it reveals more departments within it...

e.g

Computing
Clothes
Electrical

and if you click on clothes it would then display....

computing
Clothes
  + Shorts
  + T-shirts
  + Trousers
Electrical

is it best to use $_GET ... and also what about database design?

Thanks

d
Link to comment
https://forums.phpfreaks.com/topic/27450-navigation-menu-help/
Share on other sites

Yes it is best to use get as you want search engines to be able to follow your catagories. As for database design as an example you would have your catagory id, catagory name, and then parent id. So as an example if parent id is 0 its at the top of the tree then if cat 1 were shorts any sub cats would have the parent id of 1 etc.
Link to comment
https://forums.phpfreaks.com/topic/27450-navigation-menu-help/#findComment-125570
Share on other sites

I have just recently coded a left hand navigation in the format you have mentioned. I used the get function and a database with three fields to determine where each is to fall under as steveclondon mentioned. I found it to be very easy to set up and easy to manipulate as well. If you get your statements all lined up right you should have no issue.
Link to comment
https://forums.phpfreaks.com/topic/27450-navigation-menu-help/#findComment-125580
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.