PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I need help! I very new at php but have found some code that helps me build a subnav for my site. My problem is with the "About Us" section of my site. I know the PHP code works in that it directs the links it to its respective folder path inside the "About Us" page. Whats happening is that when you try to press the About Us link, which is indicated by au in the array, it takes you to the path "/about/au/index.php". What I need is it to be taken to the path "/about/index.php". Everything works perfect for the other links, such as:tp, ct, ot. Can someone please help me out making the About Us(a.k.a: au) link to "/about/index.php". Everything looks and functions correctly, even the About Us link looks perfect, but it doesn't link to the right place. Please keep in mind, I can't change actual paths(folders) in the "About" section of the site.
PLEASE HELP!
That's a horrible bit of code too by the way ... all those escaped quotes .. ugh
[edit] Actually, that might not be what you want. I just noticed you use $snav in other places too. I presume you want to change the url but keep the image(s) the same, like snav_au.gif ? In which case do this instead:
Should I delete what I remarked in the code below or should I add what you have given in addition to original code and where should I put the code you have given.