foreach ($levelone as $name => $url)
{
then we check and see if the current page is in the array
of if the current 'group'
if (strpos( $GLOBALS["SCRIPT_NAME"], $url )==true ||
strpos( $leveltwodir, $url)==true)
{
if the page is current, show a 'current page' link
echo "<a href="$url"><img src="/img/" . $name . "on.jpg"</a>";
}
else
{
if the page is not current, do a regular link
echo "<a href="$url"><img src="/img/" . $name . ".jpg"</a>";
}
}
The above is a snippet of code, I get a php error when I run it, the error says:
unexpected T_Variable, expecting ',' or ';'
This error message applies for this line of code:
echo "<a href="$url"><img src="/img/" . $name . "on.jpg"</a>";
Can anyone tell me what is wrong with my code?
Thx
MK