在php里写
$conn=@mysql_connect("localhost","root(用户名)","root(密码)")or die("数据库连接失败");
mysql_select_db("test");
mysql_query("set names 'utf-8");
在php里写
$conn=@mysql_connect("localhost","root(用户名)","root(密码)")or die("数据库连接失败");
mysql_select_db("test");
mysql_query("set names 'utf-8");