I get an error thrown at me because of the mysql_num_rows, I'm stumped, I don't know why it's got a problem with it? It works in a normal PHP file but not in a function...PHP Code:
function isAdmin($username, $password)
global $connect, $select_db, $adminstable;
$query = mysql_query("SELECT userid FROM $adminstable WHERE username = '$username' AND password = '$password'");
if(mysql_num_rows($query) > 0)
Also, if it's a known problem and rule that I can't have in there, what alternative do I have?