源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

PHP 设置MySQL连接字符集的方法

  • 时间:2021-09-18 08:50 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:PHP 设置MySQL连接字符集的方法
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.
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部