rendered paste body<?
session_start();
include("config.php");
if( !empty($_SESSION[ id ] ))
{
$title = "Battlefield";
include("header.php");
include("navigation.php");
?>
<table style="border: 1px solid" bgcolor="#0000cc" width="600" align="center">
<tr>
<th class="new" width="150">Name</th>
<th class="new" width="175">Army Size</th>
<th class="new" width="175">Gold</th>
<th class="new" width="100">Rank</th>
</tr>
<?
$recquery = mysql_query("SELECT * FROM user");
while($str=mysql_fetch_array($recquery)) {
?>
<tr>
<?
echo "<td class='det' align='center'><b><a href='stats.php?id=$str[id]'>$str[user]</a></b></td>";
echo "<td class='det' align='center'><b>$str[armysize]</b></td>";
echo "<td class='det' align='center'><b>$str[gold]</b></td>";
echo "<td class='det' align='center'><b>$str[id]</b></td>";
}
}
?>
</tr>
</table>
<? include("footer.php"); ?>
<?
else{
$title = "Login";
include("header.php");
include("center_login.php");
?>
<tr><td align="center">
<table style="border: 1px solid" align="center" width="50%" cellspacing="0" cellpadding="5">
<tr><th class="new" style="border-bottom: 2px solid"><b>Login</b></th></tr>
<tr><td class="det"><p align="center"><b>Please login above to view this page.</b></p>
</table>
</td>
</tr>
<?
}
include("footer.php");
?>