Location: PHPKode > projects > Simple Comments > comments/admin/bannedips.php
<? require("header.php"); ?>
<p align="center">
<br><hr>
<?
require_once( '../config.php' );
mysql_connect($dbaddress,$dbuser,$dbpass);
@mysql_select_db($dbname) or die( "Unable to select database");
$query="SELECT * FROM banip";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();

$i=0;
while ($i < $num) {

$id=mysql_result($result,$i,"id");
$ip=mysql_result($result,$i,"ip");

?>
<p align="center">
<?
echo "<b>IP: $ip";
?>
 - <a href="unbanip.php?ip=<? echo $ip; ?>">Unban IP</a><br><br>
<?

$i++;
}

?>
<hr>
<p align="center">
<a href="javascript: history.go(-1)">Back</a><br><br>
<a href="../">Exit Admin</a>
Return current item: Simple Comments