摘要: 无标题文档 登录页面 用户名: 密码: query($sql); $a = $result->fetch_row(); if(!empty($pwd) && $a[0]==$pwd) { //跳转页面 //header("location:main.php"); echo ""; } else { echo "用户名或密码错误... 阅读全文
posted @ 2017-02-19 16:42 周全264 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 1.造一个mysqli对象,造连接对象$db = new MySQLi("localhost","root","123","mydb");2.准备一条SQL语句$sql = "select * from info";3.执行SQL语句,如果是查询语句,成功返回结果集对象$reslut = $db-> 阅读全文
posted @ 2017-02-19 11:01 周全264 阅读(167) 评论(0) 推荐(0) 编辑