摘要: // 增加,删除,修改 $spl = "insert into student(sname,ssex) values ('小明','男')"; $rest = $conn->query($spl); // 查询 $sqq = "select * from student"; $list = $con 阅读全文
posted @ 2020-08-14 09:51 梦魇之瞳 阅读(93) 评论(0) 推荐(0) 编辑
摘要: // 面向对象,数据库连接 $conn = new mysqli('localhost','root','root','black'); // 判断是否连接 if($conn->connect_error){ echo $conn->connect_error; }else{ echo '连接成功' 阅读全文
posted @ 2020-08-14 09:19 梦魇之瞳 阅读(92) 评论(0) 推荐(0) 编辑