= first AND %u <= last', $nip, $nip); $res = do_mysql_query($sql) or sqlerr(__FILE__, __LINE__); if (mysql_num_rows($res) == 0) stderr("Result", "The IP address $ip is not banned."); else { $banstable = "\n" . "\n"; while ($arr = mysql_fetch_assoc($res)) { $first = long2ip($arr["first"]); $last = long2ip($arr["last"]); $comment = htmlspecialchars($arr["comment"]); $banstable .= "\n"; } $banstable .= "
FirstLastComment
$first$last$comment
\n"; stderr("Result", "
The IP address $ip is banned:

$banstable

"); } } stdhead(); ?>

Test IP address

IP address