ok heres the code.
<?php
// menunav.php - use as include on each page.
// by jamie dyer
// see example at
http://www.hogwaller.com
// First array. It contains the page names, which appear on the page.
$name*=*array*("&/",
********"Page 1", this is the line the error comes up on
********"Page 2",
********"Page 3",
********"Page 4",
********"Page 5",
********"Page 6",
********"Page 7",
********"Page 8",
********"Page 9",
********"Page 10");
// Second array. It contains the actual .php pages.********
$url*=*array*("/",
***********"page1.php",
***********"page2.php",
***********"page3.php",
***********"page4.php",
***********"page5.php",
***********"page6.php",
***********"page7.php",
***********"page8.php",
***********"page9.php",
***********"page10.php");
// Third array. Optional. It contains the title tags.
***********
$title*=*array*("Top of Site",
********"This is Page 1",
********"This is Page 2",
********"This is Page 3",
********"This is Page 4",
********"This is Page 5",
********"This is Page 6",
********"This is Page 7",
********"This is Page 8",
********"This is Page 9",
********"This is Page 10");
// Set the requested page. It will be used to "unlink" if true.
$file*=*basename($_SERVER['REQUEST_URI']);
// Set the referer. Used for the "Previous Page" link.
$back*=*$_SERVER['HTTP_REFERER'];
/* Count the number of elements in the $name array, and iterate through the elements. The number of elements in the three arrays ($name, $url, $title) must match. */
$namecount*=*count($name);
for*($i*=*0;*$i*<*$namecount;*$i++)
********{
// If current .php page being iterated matches requested page, "unlink" it.
*
********if*($url[$i]*==*$file)
****************{
*******echo*("<a*class=\"nolink\"*title=\"You*A re*Here\">$name[$i]</a><br>");
*********
****************}
// Otherwise, make it a live link.
********else
********{
echo*("<a*href=\"$url[$i]\"*title=\"$title[$i]\">$name[$i]</a><br>");
*********************************}
********}
echo*("<br>");
// As long as the referer and the current page don't match, make a "Previous page" link.
****
****if*($back*!==*$file)
****{
echo*("<a*href=\"$back\">Previous*Page</a><br>");
****}
****
?>