2012-02-11, 07:47 PM
Here's a snippet of the file:
It should display all banned members, but it does not.
Screenshot:
$query = $db->query("SELECT * FROM `".TABLE_PREFIX."banned` ORDER BY `dateline` DESC");
while ($banned = $db->fetch_array($query))
{
$uid = intval($banned['uid']);
$user = get_user($uid);
$bannedmember = build_profile_link($user['username'],$banned['uid']);
}
$query = $db->simple_select("banned", "COUNT(uid) AS count");
$totalbanned = $db->fetch_field($query, "count");
$template = "<html>
<head>
<title>Banned Members</title>
{$headerinclude}
</head>
<body>
{$header}
<table class=\"tborder\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\">
<tr>
<td class=\"thead\"><strong>Banned Members</strong></td>
</tr>
<tr>
<td class=\"tcat\" width=\"23%\"><span class=\"smalltext\">Below is the list of all banned members.</span></td>
</td>
</tr>
<td class=\"trow1\"><span class=\"smalltext\">
{$bannedmember}
</span></td></table>
<br />
Total Banned Members: <b>{$totalbanned}</b>
{$footer}
</body>
</html>";
It should display all banned members, but it does not.
Screenshot: