Kirstiefold
09-14-2005, 05:49 PM
I have my navigation at the left of my page, however so that I don't have to edit every page on my site I want to use a .inc file instead and just use that for every page.
Could anyone tell me what I need to write in my navigation bar to get the text I want to show up?
Thanks.
Greywing
09-14-2005, 06:08 PM
Stick your navigation text in an .inc file (as you are probably doing so)
And in your navigation spot you could include it via PHP
<?php include("navigation.inc"); ?>
So say if your navigation is usually in like this:
<div id="navigation">
<h3>Navigation</h3>
<ul>
<li>Home</li>
etc...
</ul>
</div>
You'd do this:
<div id="navigation"><?php include("navigation.inc"); ?></div>
.. and if i'm not making sense or this isn't what you want feel free to tell me. 8-)
Monkey Bizzle
09-14-2005, 08:41 PM
You could also check out Lissa's page about PHP includes here:
http://www.lissaexplains.com/html6.shtml#php