O 0 satır bulursa Im eşleşen bir satır bulursa DOĞRU dönmek için aşağıdaki işlevi almaya çalışırken, ve YANLIŞ.
function IsOpenEvent($id) {
$result = mysql_query("SELECT * FROM `events`
WHERE `access` = 'public'
AND `id` = '$id'
LIMIT 1")
or die(mysql_error());
if ($result) {
return TRUE;
} else {
return FALSE;
}
}