View Single Post
Old 02-09-2012, 12:09 AM   PM User | #17
tracknut
Regular Coder

 
Join Date: Aug 2006
Posts: 891
Thanks: 4
Thanked 205 Times in 204 Posts
tracknut is an unknown quantity at this point
Just like you did in your current code, you could simply list all your links with <br> separating them. There are higher-tech ways to do it, but that's unrelated to this particular discussion. So then you have a list of your nav items, and you put it all in one file, called nav.inc or so. It essentially looks like the code I gave you, but again it should be stripped of all the doctype, head, body, etc stuff.

Then in each of your site pages, you'd have a line like:
Code:
<?php include ("nav.inc"); ?>
wherever you want the nav included (ie, probably a <div> on the left side of the page).

That should do it.
Dave
tracknut is offline   Reply With Quote
Users who have thanked tracknut for this post:
gmag73 (02-09-2012)