i have a function in forum_func.php like
function cookiecheck() {
$cookiecheck = mysql_db_query($dbasename, "select memberid from members where memberid='".$_COOKIE[memberid]."'");
if (mysql_num_rows($cookiecheck) > 0) { // line 5
$checkresult = "1";
} else {
$checkresult = "0";
}
}
and i call this function from board.php. i call it like this
cookiecheck()
echo $checkresult;
but i returns
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\tumerportal\forum\forum_func.php on line 5
where is my fault