Jump to content

Dynamic Sites


aztec

Recommended Posts

Hello
I have a static page website that I am converting to a dynamic site. There are 560 pages and over 500 use the same template.  All the information is included in each page, I can hear the groans from here but that was the only way I knew and it worked. Please forgive me I have now seen the light.
I have a small test site running on the developement computer with Apache server, MySql and PHP5, the queries work.
Being new to dynamic sites my question is. Do I have to create 560 pages each containing the style sheet and the query for each link on the page.
It seems a waste to have a page loaded then having to reload the same page when all that is changing is 20 names from 3 tables in a database. Each of the names is a link to a different page at the moment.
Is it possible to reset the containers on the display page and just make the link send a query or not.
Gaining new knowledge also seems to create new problems to solve, but I will carry on.
Kind Regards
Link to comment
Share on other sites

no... what it means is that you can connect more then one page, to the same template/css...
once you have your template.php set... you can have
page1.php
[code]
$yourinfo = '<a href="page2.php">Page 2</a>';
require_once('template.php');
[/code]

page2.php
[code]
$yourinfo = '<a href="page1.php">Page 1</a>';
require_once('template.php');
[/code]

that way you have the one big template page, and the rest are all tiny... :-)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.