Hiya everyone,
Im writing a website in PHP which loads in common code for the entire site.
This includes the menu.
But in each section, there are sub menus add to the menu.
What I want to do is write a IF or Switch statement for the sub menus so that I have one file with all the menu items for the whole site in it. And for the menu to work out which section it is in and only add the sub menu for that section.
How do I find out where the page?
And how do I search the string to find the directorys?
ie searching for the members section in the following address address1: http://www.phpbuilder.com/members
address2: http://members.phpbuilder.com
Thanks
BIGmrC