Hello,
I have just created my website in php, but mostly I mainly
used it for templates in web-design.
My website: dualfans.host.sk
Here's the problem, I wanted to make the content separated
from the template design. My content is in the separate
file (lots of includes (inc) like "require "blahblah.php"
<?
include "header.php";
Content here
include "footer.php";
?>
I wanted to have
<?
include "header.php";
$result = @mysql_query("SELECT ID, Content FROM
Contents");
if (!$result) {
echo("<p>Error performing query: " . mysql_error()
. "</p>");
exit();
}
include "footer.php";
?>
Maintenance of a content-driven site is a real pain. I feel locked
into a dry, outdated design because rewriting those hundreds of
HTML files to reflect a new design would take forever. Server-side
includes (SSI’s) can help alleviate the burden a little, but I
still end up with hundreds of files that need to be maintained
should I intend to make a fundamental change to my site.
Help me!!!!!!!
Please
😕