Issue with error in Nav Codes

I have set my menu bar items in a seprate page called nav.php and call it as using php include. I am wanting to set it so I can use the class=“active” with this. What I have so far is this:

Page:

<?php $current = 1; include "nav.php"; ?>

Nav.php:

My issue is that when I view the page I get a error (Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in D:\hosting\6544605\html\FBC\nav.php on line 3) where the nav should be.

Any help would be greatly help.
Thanks
Michael

Hi there,

Change:
[php]echo "class=“active”; ?>[/php]

to:
[php]echo ‘class=“active”’; ?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service