This script builds my navigation. But I wanted it to append id='at' to the <td> if its the active page which the user is on, but I'm not sure why it doesn't do that.
<?php
$filenotfound = "/nofile.php";
$navigation = array(
/* "nav" => array('/av/index.php','/am/index.php','/asia/index.php','/aw/index.php','/shots/index.php','/ftphosts.php'), */
"nav" => array('/av/index.php','/am/index.php','/asia/index.php','/aw/index.php','/nofile.php','/nofile.php'),
"link" => array('Anime Movies','Anime Music','J-pop Videos','Wallpapers','Screen Shots','FTP Server hosts'),
);
$c = 0;
foreach ($navigation['nav'] as $val) {
echo " <tr>\n";
if ($val == $_SERVER['PHP_SELF'] && !$filenotfound) {
echo " <td nowrap=\"nowrap\" id=\"at\">";
} else {
echo " <td nowrap=\"nowrap\">";
}
echo "<a href=\"". $val ."\"> " . $navigation["link"][$c++] . " </a></td>\n </tr>\n";
}
?>