Possible Duplicate:
mysql_fetch_array() expects parameter 1 to be resource, boolean given in select
It says my syntax has errors, I cant seem to find the error.
$query_admin = "SELECT * FROM `user_accounts` WHERE `id` =1 AND `name` LIKE {$login_user_name}AND `password` LIKE {$login_password }";
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
echo $query_result;
}
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Database Manager\admin\sql_functions.php on line 32