[Solved] Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\login and registry\core\functions\users.php on line 6

[ad_1]

you need to use like:-

function user_exists($username) {
   $count = mysql_result(mysql_query(" SELECT COUNT (`user_id`) FROM `users_login` WHERE `username` = '$username'"),0);
   return $count == 1 ? true : false;
}

1

[ad_2]

solved Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\login and registry\core\functions\users.php on line 6