dietkinnie Posted November 3, 2009 Share Posted November 3, 2009 Hi Everyone, Can you please tell me what this type of menu is called ?? Football > Europe > Italy > Milan. Thanks . Quote Link to comment https://forums.phpfreaks.com/topic/180044-solved-type-of-menu/ Share on other sites More sharing options...
mikesta707 Posted November 3, 2009 Share Posted November 3, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/180044-solved-type-of-menu/#findComment-949869 Share on other sites More sharing options...
dietkinnie Posted November 3, 2009 Author Share Posted November 3, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/180044-solved-type-of-menu/#findComment-949925 Share on other sites More sharing options...
dietkinnie Posted November 5, 2009 Author Share Posted November 5, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/180044-solved-type-of-menu/#findComment-951531 Share on other sites More sharing options...
Zane Posted November 5, 2009 Share Posted November 5, 2009 http://dev.mysql.com/tech-resources/articles/hierarchical-data.html Quote Link to comment https://forums.phpfreaks.com/topic/180044-solved-type-of-menu/#findComment-951578 Share on other sites More sharing options...
dietkinnie Posted November 5, 2009 Author Share Posted November 5, 2009 http://dev.mysql.com/tech-resources/articles/hierarchical-data.html Great this is exactly what i needed. Thanks ! Quote Link to comment https://forums.phpfreaks.com/topic/180044-solved-type-of-menu/#findComment-952139 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.