PHP 设置MySQL连接字符集的方法
2018-09-07 19:05
阅读:375
mysql_set_charset()。
这个函数是这样用的:
mysql_set_charset(utf8, $link);
成功返回 TRUE,失败返回 FALSE。
就这么简单。
下面是PHP手册原文
This is the preferred way to change the charset. Using mysql_query() to execute SET NAMES .. is not recommended.
下一篇:php 信息采集程序代码
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:PHP 设置MySQL连接字符集的方法
文章链接:http://soscw.com/index.php/essay/15154.html
文章标题:PHP 设置MySQL连接字符集的方法
文章链接:http://soscw.com/index.php/essay/15154.html
评论
亲,登录后才可以留言!