Re: Random Error - Not Sure What Is Wrong
change this
$d=mysql_query("SELECT COUNT(*) as cnt FROM events WHERE evUSER={$ir['userid']} AND evREAD=0",$c) or print(mysql_error());
$r=mysql_fetch_array($d);
to this
$d2=mysql_query("SELECT COUNT(*) as cnt FROM mail WHERE mail_to={$ir['userid']} AND mail_read=0",$c);
$r=mysql_fetch_array($d2);
and it all works again like it should its some kind of conflict with the one in header.php and the one in mainmenue.php