Here is the code for the navigation menu – I save this as a file called menu.php
——————————————–
<?php
$active[$current] = “class=active”;
?>
<ul>
<li <?php echo $active[1] ?>><a href=”index.php”>Home</a></li>
<li <?php echo $active[2] ?>><a href=”services.php”>services</a></li>
<li <?php echo $active[3] ?>><a href=”print.php”>print</a></li>
<li <?php echo $active[4] ?>><a href=”web.php”>web</a></li>
<li <?php echo $active[5] ?>><a href=”marketing.php”>marketing</a></li>
<li <?php echo $active[6] ?>><a href=”portfolio.php”>Portfolio</a></li>
<li <?php echo $active[7] ?>><a href=”contact.php”>Contact</a></li>
</ul>
——————————————–
Then, just include the menu on your pages and indicate which of the menu links you want to give the CSS style “active”:
——————————————–
<?php $current = 3; include(”menu.php”); ?>
——————————————–