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
https://forums.phpfreaks.com/topic/27975-dynamic-sites/
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
https://forums.phpfreaks.com/topic/27975-dynamic-sites/#findComment-128014
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.