header("Content-type:type/html;
charset=utf-8");
mysql_connect('localhost','root','');
mysql_select_db('test');
【链接数据库】mysql_query('set names utf8');
$query=mysql_query('select * from item');
print_r(mysql_fetch_array($query));
?>