template and while loops
<p>I'm making a simple template system. It's annoying to not to be able to keep the code in the PHP file and output it in html file...
Its not nice to have this in the template:</p>

<pre><code>&lt;?php 
while ($row = mysql_fetch_array($query)) { 
$name = $row['forum_name'];
$date = $row['forum_date'];
$desc = $row['forum_description'];
$lastpost = $row['forum_lastpost'];
?&gt;

&lt;h1&gt;&lt;?php echo $name ?&gt;&lt;/h1&gt;
&lt;p&gt;&lt;?php echo $desc ?&gt;&lt;/p&gt;

&lt;?php } ?&gt;
</code></pre>

<p>Is there some way I could keep the code in the PHP file?</p>

<p>Thanks</p>
