Hey,
I have been learning PHP for the last couple of weeks and have made a few simple pages.
I would now like to make a simple CMS and am having problems understanding how to make a content area that contain dynamic content.
Could someone please explain how I should be structuring it? Should I be using a ‘switch’ or an ‘if – else’ in a content file and including that?
e.g
I have….
<?php
include “header.php”;
//in here I want the content…
include “footer.php”;
?>
Also if I wanted…
<div>
<div>$the_title</div>
<div>$content</div>
</div>
Would I have to include all the DIV’s in my included files? Or can I somehow get the content and the DIV template and merge them together?
Sorry if this is a really basic question…but I really need some help.
Thank you