帮检查那里错啦 为什么?急
<?php
mysql_connect('localhost','root','');
mysql_select_db('mysql');
mysql_query('set names utf8');
$query = mysql_query('select*from mysql');
$res = mysql_fetch_array($query);
print_r($res);
?>
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\test.php on line 6