Jump to content

[SOLVED] Type of Menu


dietkinnie

Recommended Posts

um.... what context is it in? drop down? what does each of those words represent? a sub menu? a link? your question is very confusing. I don't see how this has anything to do with PHP either

 

Hi, sorry for the vague reply.

 

First off, I already have a horizontal left menu that is up and functioning correctly.

 

However when i click on Milan i would like to include the "menu path" in the page i am redirected to.

 

 

Football >> Europe >> Italy > Milan

 

Something like this http://www.oddsportal.com/soccer/germany/bundesliga/.

 

Soccer» Germany»Bundesliga

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/180044-solved-type-of-menu/#findComment-949925
Share on other sites

um.... what context is it in? drop down? what does each of those words represent? a sub menu? a link? your question is very confusing. I don't see how this has anything to do with PHP either

 

 

Hi All,

 

Here is a better explanation:

 

Menu Table structure

 

id description parent_id

1 Soccer 0

2 England 1

3 Arsenal 2

4 United   2

5 Germany 1

6 Bayern 5

7 Italy         1

8 Milan       7

9 Palermo    7

10 Inter   7

11 Liverpool 2

 

 

I need a way to list the menu hierarchy when i only have the child available.

 

For example if i have the description 'Milan' with parent_id 7, how can i go through all the parent ids to find the main parent which is soccer and display accordingly ?

 

Soccer (parent_id = 0) >> Italy (parent_id = 1) >> Milan (parent_id = 7 )

 

Hope this explains what i need help with a bit clearer as i am completely lost.

 

Thanks in advance.

 

//DK

 

Link to comment
https://forums.phpfreaks.com/topic/180044-solved-type-of-menu/#findComment-951531
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.