摘要: header("Content-type: text/html; charset=utf-8"); $pdo = new PDO('mysql:host=localhost;dbname=ceshi', "root", ""); $pdo->exec("set names utf8"); //为下面 阅读全文
posted @ 2018-07-19 21:38 sun1987 阅读(83) 评论(0) 推荐(0)
摘要: <?php header("Content-type: text/html; charset=utf-8"); //PDO操作mysql /*$pdo =new PDO("mysql:host=localhost;dbname=ceshi","root",""); $pdo->exec("set n 阅读全文
posted @ 2018-07-19 21:37 sun1987 阅读(172) 评论(0) 推荐(0)