rendered paste body<?php
error_reporting(E_ALL | E_STRICT);
include ('./head.html');
if (isset($_POST['all'])) {
$cato = $_POST['all'];
}
echo '<!-- Open Content Div --><div id="content">
<!-- Main Content Here -->
<p class="ptop"><img src="img/tleft.gif" width="10" height="10" alt="" /></p>
<h1 class="pmiddle">News</h1>
<p class="pmiddle">Here is where all of the news for ZeApps comes in! Check in frequently! <a href="news.php?all=all">ALL NEWS</a>. This only shows the last three.</p>
<p class="pbottom"><img src="img/bleft.gif" width="10" height="10" alt="" /></p>';
require_once ('mysql_connect.php');
$query = 'SELECT * FROM newz ORDER BY rank;';
$result = mysql_query ($query);
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo '<p class="ptop"><img src="img/tleft.gif" width="10" height="10" alt="" /></p>
<h1 class="pmiddle">' . $row['title'] . ' POSTED: ' . $row['date'] . '</h1>
<p class="pmiddle">' . $row['msg'] . '</p>
<p class="pbottom"><img src="img/bleft.gif" width="10" height="10" alt="" /></p>';
}
echo '<!-- Close Content Div --></div>';
include ('./foot.html');
?>