Hi, I am trying to make a "somewhat" dynamic table for my navigation. And basically I want to have a column before the column containing a list of links, and inside this first column a little arrow (image) which will point to the page (link) which the user is on - if the user is on that particular page.
Sounds simple right? Well I started my script and got stuck. It seems to be just repeating the row over and over again without stopping, plus the concatenation doesn't seem to be outputting the contents from the array - what the heck is going on?!
<table width="180" border="0" cellpadding="2" cellspacing="0">
<tr>
<td bgcolor="#00458A" height="18" colspan="2" class="whitenote"> Topics:</td>
</tr>
<tr>
<td bgcolor="#E1F0FF" height="9" style="border-bottom: 1 solid #003366" colspan="2">
Click on one of the topics below and explore.</td>
</tr>
<tr>
<td width="23" bgcolor="#FFFFFF" height="1" style="border-bottom: 1 solid #006699" nowrap> <img hspace="3" src="images/expand.gif" width="9" height="9" alt="">
</td>
<td height="1" bgcolor="#FFFFFF" style="border-bottom: 1 solid #006699"><b>Home</b></td>
</tr>
<?php
$navigation = array(
"nav" => array('/av/index.php','/am/index.php','/asia/index.php','/experiments2.php','/shots/index.php','/sl/index.php'),
"link" => array('movies','music','j-pop','wallpapers','screenshots','ftp hosts'),
);
while($navigation != $_SERVER['PHP_SELF']) {
echo
"<tr>\n
<td width=\"23\" align=\"center\" valign=\"middle\" nowrap bgcolor=\"#ECF5FF\" class=\"bluebelow\"> </td>\n
<td width=\"100%\" nowrap bgcolor=\"#ECF5FF\" class=\"bluebelow\"><a href=\" " . $navigation["nav"] . " \" class=\"leftnav\"> " . $navigation["link"] . " </a></td>\n
</tr>\n";
}
?>
<tr>
<td width="23" height="2" align="center" valign="middle" nowrap bgcolor="#ECF5FF" style="border-bottom: 1 solid #006699">
</td>
<td height="2" bgcolor="#ECF5FF" style="border-bottom: 1 solid #006699"> </td>
</tr>
</table>
Here's the URL of the page I was working with too. As you cansee its not working as-is. http://www.mzanime.com/experiments2.php Any help would be much appreciated.