把echo "<META HTTP-EQUIV='Refresh' CONTENT='2; URL=../jian/index.php'>";
换成echo "error";
试下,如果可以打印说明是"<META HTTP-EQUIV='Refresh' CONTENT='2; URL=../jian/index.php'>";语法问题,改下就好了
换成echo "error";
试下,如果可以打印说明是"<META HTTP-EQUIV='Refresh' CONTENT='2; URL=../jian/index.php'>";语法问题,改下就好了
或者直接
$dataresult= mysql($database,"select * from $tablename where '$username' like '$password%');
echo <<<HTML
<html>
<head>
<title>ERROR</title>
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=../jian/index.php">
</head>
<body>
<p align="center">ERROR</p>
</body>
</html>
HTML;所以后来用了Header来跳转页面
$dataresult= mysql($database,"select * from $tablename where username='$username' and passwrod='$password');
$dataresult= mysql($database,"select * from $tablename where ".$username." like '%".$password."%');."%'); ===》 ."%'");
少了个“"”