登陆提示null
define("DB_HOST","localhost");
define("DB_USER","root");
define('DB_PWD', "");
define('DB_DBNAME', "shopl");
define("DB_CHARSET","utf8");
-----------------------------------------------------------------------
function fetchOne($sql,$result_type=MYSQLI_ASSOC){
$result=mysql_query($sql);
if($result){
$row=mysql_fetch_array($result,$result_type);
return $row;
}
}
----------------------------------------------------
header("content-tpye:text/html;charse=utf-8");
error_reporting(E_ERROR | E_WARNING | E_PARSE);
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}'";
$res=checkAdmin($sql);
var_dump($res);