Ok so i have a file that im including to each of my pages, the file contains all the things that i need to be on evry page but i may want to change at some point and i might aswell change 1 source rather than dozens. I want to create an array (open to other suggestions) that will contain a list of links that will create my menu. So basically on
include.php
then on each of my pages the page is included but how would i display each of the links as a seperate html line i.e (bearing in mind there could be any number of links and each needs its own line of code, so needs to be fully dynamic)PHP Code:<?
$Menu = array('Link1', 'Link2'); // And so on...
?>
PHP Code:<a class="nav" href="mylinkhere.php">Links</a><span class="hide"> | </span>
I mean i could do it with a DB no problem, but can it be done using an array and an included page?
Thanks in advance, WebNoob![]()





Bookmarks