摘要: $link = mysqli_connect('localhost','root','root'); mysqli_select_db($link,'数据库名'); $res = mysqli_query($link,'set names utf8'); $sql = "SELECT 主表.name 阅读全文
posted @ 2019-07-02 16:19 郑鹏飞 阅读(1039) 评论(0) 推荐(0) 编辑
摘要: $link = mysqli_connect('localhost','root','root'); mysqli_select_db($link,'数据库名'); $res = mysqli_query($link,'set names utf8'); $sql = "SELECT 主表.*,副表 阅读全文
posted @ 2019-07-02 16:09 郑鹏飞 阅读(1490) 评论(0) 推荐(0) 编辑
摘要: //连接数据库 $link = mysqli_connect('localhost','root','root'); //选择数据库 mysqli_select_db($link,'数据库名'); //设置字符集 $res = mysqli_query($link,'set names utf8') 阅读全文
posted @ 2019-07-02 16:03 郑鹏飞 阅读(932) 评论(0) 推荐(0) 编辑