Noob problem: link tables

Associate
Joined
1 Oct 2008
Posts
43
HTML beginner here

Got a 20page+ website

Each page has a navigation table of links to the other website pages:

24ex8hh.jpg



PROBLEM is - Everytime I add a new page. I gotta update all the tables!! OR at the moment create links for pages that'll appear in the future!! No good and very confusing to users


??? I figure i need to create a seperate (master) table that all website pages pull from like a script or code????


What's this method / technique called ? So I can google and learn how to

thank you
 
Have a look at SSI Includes or use the include function on a server-side language like PHP/ASP. But essentially you'd create one file that has the table then include (or 'link') to that file from within the other pages.
 
+1 to the above.

The script thing you're after is called pagination. But it most typically requires tables. If you let us know the structure of that folder in terms of the pages it pulls, someone here might be kind enough to put a little custom script together that works from broswing the folders files instead.

public_html/posts/page1.php
public_html/posts/page2.php

etc.
 
Split the page up into a template.

Minimally you want:
header.php
index.php
footer.php

Then your index and content pages would look like this:

<html>
<body>

<?php include("header.php"); ?>

<p>Hello world!</p>

<?php include("footer.php"); ?>
</body>
</html>

If your navigation is in the footer.php then any changes will reflect on every page that includes it.
 
Back
Top Bottom