Location: PHPKode > projects > top serious project > bco/admin/show_banned.php
<?

$query = "select id, username, banned from users where banned=1";

if (!$result = pg_query($query)) {
	bco_error("List banned query failed.");
}

bco_html_header("List banned users");

echo <<< HTML
<a href="/index.php">index</a>
HTML;

if (pg_num_rows($result) == 0) {
	bco_display_info("No one is banned", "View banned.");
}

while ($row = pg_fetch_array($result,$result_countt++)) {
	echo "$row[username] <a href=\"/admin/admin.php?mode=ban&amp;action=unban&amp;id=$row[id]\">unban</a><br />";
}

bco_html_footer();

?>
Return current item: top serious project