Arcadius
Banned User
So Im trying to just fetch atleast one user from the ban list to atleast get a start for the page, so I can later make it list last 25 banned or something. But right now, I cant even get it to display the name or comment from ban table.
I am using OTHire and Znote, here is what I have made so far.
If anyone can help me figure this out, I would greatly appreciate it.
I am using OTHire and Znote, here is what I have made so far.
Code:
<?php require_once 'engine/init.php'; include 'layout/overall/header.php';
echo '<table border="0" cellspacing="0"><tr class="yellow"><td><center>Ban Table</center></td></tr>
<tr><td>';
$baninfo = mysql_query("SELECT `id`, `comment` FROM `bans` ORDER BY `id` DESC LIMIT 1");
$bans = mysql_fetch_assoc($baninfo);
echo '<center>Our last banned player: '.$bans['id'].' for '.$bans['comment'].'</a></center></td></tr>';
echo '</table>';
include 'layout/overall/footer.php'; ?>
If anyone can help me figure this out, I would greatly appreciate it.