Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP for Navigation?… Re: PHP for Navigation?…

#68463
TheDoc
Member

Here’s a reeeeaaaaally simple demo:

This is your index.php page:

Code:




This is a Sample!

Hi, I’m content


And in a file located in a folder called "includes", your navigation.html file:

It’s as simple as replacing everywhere your navigation is with this line:
<?php include(‘includes/navigation.html’); ?>

Then you only have to update one file (navigation.html) whenever you want to make a change to it.