Alright so I'm new to php but not programming in general. I am trying to build a menu with sub-menus that display only on given pages. So my idea was to pass an integer from the calling page into the included menu page and from there through a series of if-elseif statements determine which menu to include from there. So far all I am able to do is include the main menu but on said pages the sub menus will not show due to the if ( $pge == 31 ); statement and I've tried it with quotes around the 31 with no change. Any help would be greatly appreciated the source code for the menu and calling page are attached.
THIS THREAD HAS EXPIRED.
Are you having the same problem?
We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.