dologin页面<?php 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 "<script>alert('验证码错误');</script>"; echo "<script>window.location='login.php';</script>";}MySQL获取语言function getOne($sql) { $query=mysql_query($sql); if($query) { $res=mysql_fetch_assoc($query); return $res; } else{ return false; }}
添加回答
举报
0/150
提交
取消