Hey everyone... I have created a news system for my new site. It works great and all, but it wont work with my template. Here is what my main content box looks like....
Code:
<div id="maincontent">
<h2><a href="#">hide</a></h2>
<div class="contentbox">
<p></p>
</div>
Well I want to have separate boxes for every new news post I make. So I want it to looks something like this...
Code:
<div id="maincontent">
<h2><a href="#">hide</a><?php echo($news['title']); ?></h2>
<div class="contentbox">
<p><?php echo($news['author']); ?></p>
</div>
When I do that though, nothing appears... but even when I just make a separate file and include it, it all is displayed in just one box. So my question here is how to make this data appear in separate boxes whenever I make a new news post. Thank you!  .
|