dologin页面
require_once '../include.php';
$username=$_POST['username'];
$password=md5($_POST['password']);
$verify=$_POST['verify'];
$verify1=$_SESSION['verify'];
if($verify==$verify1){
$sql="select * from imooc_admin where username='$username' and password='$password'";
$row=checkAdmin($sql);
var_dump($row);
}else {
echo "";
echo "";
}
MySQL获取语言
function getOne($sql) {
$query=mysql_query($sql);
if($query) {
$res=mysql_fetch_assoc($query);
return $res;
}
else{
return false;
}
}