Ok, I'm still having problems with this darn thing...
Here is what I have: I know it's ugly coding, but I'm working things out one line at a time and it's not helping me...ugh
function ipban($ip){
global $fontString, $fontString2, $headString, $myrow;
$ips= explode(".", $ips);
$query = "SELECT * FROM security WHERE ipaddress = '$ips'";
$result = mysql_query($query) or die(mysql_error());
$regip = explode(".", $result);
if(($regip[0] == $ips[0] || $regip[0] == "*") && ($regip[1] == $ips[1] || $regip[1] == "*") && ($regip[2] == $ips[2] || $regip[2] == "*") && ($regip[3] == $ips[3] || $regip[3] == "*")) {
echo "$fontString You have been banned from them website! Please contact the <a href=mailto:$myrow2[admin_email]>Webmaster</a>.";
}
}