Hi,
to manage my web site, i'm using a simple php tips:
I have a template page called main.php and in this page there is a content area.
So all my articles are a combo of the main.php and the content pages.
To do this I use this simple where I want the content loaded:
<?php
if ($page == faq) {
$title="Faw";
}
if ($page == journal) {
$title="Journal";
}
?>
I use this where I want the content loaded, so a click on my site to main.php?page=faq will load the faq embeded in the main.php.
The problem with this is that the main page code is getting bigger and bigger each time I add an article to my web site.
My question is: do you know how I could achieve to do this, with a smarter system ?
(i'm not a programmer and know very little of php).
Thanks,
Bob