You need to change it to "mysql_query" not mysql_result:
PHP Code:
case "admin_login" :
myconnect(); //I don't know what this is??
$query = "SELECT * FROM `members` WHERE `username` = '$username' AND `password` = '$password' LIMIT 1";
$result = mysql_query($query);
if (mysql_num_rows($result) == 0) {
and also, you don't need the `around table and field names:
PHP Code:
case "admin_login" :
myconnect(); //I don't know what this is??
$query = "SELECT * FROM members WHERE username='$username' AND password='$password' LIMIT 1";
$result = mysql_query($query);
if (mysql_num_rows($result) == 0) {