84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
很简单的一段代码,可是在IE浏览器上运行时就出现中文乱码,该怎么解决,下面是我的代码:
$link = mysql_connect("localhost", "root", "root") or die("不能连接到数据库服务器!可能是数据库服务器没有启动,或者用户名密码有误!".mysql_error()); //连接Mysql服务器
if($link){
echo "数据库连接成功!";
}
?>
What should I do if Chinese garbled characters appear when running PHP to connect to the MySQL server? ? Thank you very much! ! -PHP Chinese website Q&A-What should I do if Chinese garbled characters appear when running PHP to connect to the mysql server? ? Thank you very much! ! -PHP Chinese website Q&A
Please watch and learn.
可以将
改成
然后再测试下,其实现在我们都简写成:
希望对你有帮助