Quote:
Originally Posted by DPS Computing
For example, at the moment my website hosting is a few hundred pages, say I wanted to add one item to the navigation menu, how would I do it. Would I have to manually add this to all of the few hundred pages?
|
The simplest option is to use what are called include files.
You create a simply file with your navigation in:
ie navigation.inc.php or navigation.inc or navigation.php (the first options is the most secure from a php point of view although as your not using dynamic data it isn't really an issue).
Then you add it in the specific location using the following code:
Take a look at this tutorial, i think it pretty much sums up the best way to do it...
http://www.tizag.com/phpT/include.php