php获取数据库乱码

$db = new MySQLi("链接","用户名","密码","数据库名");

$program_char="utf-8";

mysqli_set_charset($db,$program);

posted @ 2017-02-22 08:30  哔哩哔哩干杯  阅读(228)  评论(0编辑  收藏  举报