在以下法典中,“头盔:”线造成了问题。
$q = mysql_query($a) or die(mysql_error());
$row = mysql_fetch_array($q);
$ValidationResponse = "false";
if ($_COOKIE[ user_name ] != "")
{
while ($row) {
if ($_COOKIE[ user_name ] = $row[ username ])
{
$ValidationResponse = "true";
break;
}
}
if ($ValidationResponse == "true")
{
ob_start();
header("location:personal_view.php");
ob_clean();
}
else
echo "<script>alert( Invalid Login. Try Again. );</script>";
}
$_COOKIE[ user_name ] = "";