Hey, I've got this script which is supposed to generate the HTML links plus make the link that the user is on, not clickable. It makes the links but it seems to completely ignore the fact that the user is ON one of the pages! Here's the script I'm not sure why it isn't working. 🙁
<?php
$navlist = array (
"names" => array("home", "contact", "sales", "services", "support", "about"),
"url" => array("navigation.php", "contact.html", "sales.html", "services.html", "support.html", "about.html")
);
if ($argc != 0)
{
$uriarray = explode("?", $REQUEST_URI);
$REQUEST_URI = $uriarray[0];
}
$navcount = sizeof($navlist[names]);
for ($i = 0; $i < $navcount; $i++)
{
if ($REQUEST_URI != $navlist[url][$i])
{
echo ("<a class=\"services\" href=\"");
echo ($navlist[url][$i]);
echo ("\">");
echo ($navlist[names][$i]);
echo ("</a> » ");
}
}
?>
Also I don't know what this operator means =>