我有一个登录页面,它检查username
和password
并且如果用户提供的凭据匹配,它会设置会话并重定向用户,它可以在我的godadd
托管帐户上运行,但现在我已经转移了我的托管,但它突然停止工作,以下是编码
if (count($result) > 0)
{
$row= mysql_fetch_array($result);
$userID = $row['userID'];
$firstName = $row['FirstName'];
$isActive = $row['IsActive'];
if ($isActive == '1')
{
$_SESSION['user'] = $firstName;
//var_dump($firstName); //it gives me the right username
//echo" - here"; //this also gets echoed
header("Location: http://google.com/"); //it just dies silently
exit;
}
请帮我找出我哪里出错了