HTML interesse |
|
ik krijg de volgende foutmelding
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/cybertec/public_html/fhotoalbum/photo.php on line 68
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/cybertec/public_html/fhotoalbum/photo.php on line 71
$query = mysql_query("SELECT * FROM banip");
$result = mysql_num_rows($query);
$ip = getenv("REMOTE_ADDR");
while($object = mysql_fetch_object($query)){
$ipban = htmlspecialchars($object->ipban);
}
if ($ipban == $ip) {
$banned = "Je bent verbannen!";
}
else {
$banned = "reactie.php?folder=$folder&pic=$pic";
}
} if ($ipban == $ip) { $banned = "Je bent verbannen!"; } else { $banned = "reactie.php?folder=$folder&pic=$pic"; }
zit er een fout in?
|