All pastes #522838 Raw Edit

Unnamed

public text v1 · immutable
#522838 ·published 2007-05-30 15:42 UTC
rendered paste body
<?php
include ('./head.html');
if (isset($_REQUEST['all'])) {
$cato = $_REQUEST['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');
if ($cato == "all"){
$query = 'SELECT * FROM newz ORDER BY rank;';
}
if ($cato == "3) {
$query = 'SELECT * FROM newz ORDER BY rank LIMIT 0,3;';
}
$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');
?>