I'm building a site with php navigation. Everything works fine on my work server, but when the site was transferred to a new hosting service the navigation only partly works. Hosting service has been upgraded to PHP 4.03, UNIX.
Links work, nav works but doesn't highlight on current section. Please help, here's sample of the code used:
<?php
if (strstr($pagename , "ads_alzheimers.php") || strstr($pagename , "ads_amex.php") || strstr($pagename , "ads_amex.php") || strstr($pagename , "ads_cnb.php") || strstr($pagename , "ads_gamecave.php") || strstr($pagename , "ads_golds.php") || strstr($pagename , "ads_lapd.php") || strstr($pagename , "ads_brand.php") || strstr($pagename , "ads_retail.php") || strstr($pagename , "ads_rally.php")) {
?>
<img name="image1" src="images/navbar_ads-on.gif" border=0>
<?php
} else { ?>
<a href="ads_alzheimers.php" onmouseover="image1.src='images/navbar_ads-on.gif';"
onmouseout="image1.src='images/navbar_ads.gif';">
<img name="image1" src="images/navbar_ads.gif" width="28" height="17" border="0" alt="ads"></a>
<?php
} ?>
As you can see, this is probably a very easy fix for people that are more experienced.