尝试在PHP中更新查询时出现内部服务器错误

尝试在PHP中更新查询时出现内部服务器错误,php,Php,实际上,我正在构建一个登录和注册系统,但如果用户的电子邮件和电子邮件代码匹配,当我试图将active表更改为1时,电子邮件激活部分出现这些内部错误 activate.php代码: <?php } else if (isset($_GET['email'], $_GET['activation']) === true) { $email = trim($_GET['email']); $email_code = trim($_GET['activation'])

实际上,我正在构建一个登录和注册系统,但如果用户的电子邮件和电子邮件代码匹配,当我试图将
active
表更改为1时,电子邮件激活部分出现这些内部错误

activate.php代码:

<?php

} else if (isset($_GET['email'], $_GET['activation']) === true) {

    $email      = trim($_GET['email']);
    $email_code = trim($_GET['activation']);

    if (email_exists($email) == false) {
        $errors[] = 'Ooops, We counldn\'t find that email address';

    } else if (activate($email, $email_code) == false) {
        $errors[] = 'Ooops, We had problem activating your account';

    }

    if (empty($errors) == false){
        echo output_errors($errors) . '<br><br>'; 
    } else {
        header('Location : activate.php?success');
        exit();
    }

} else {

    header('Location: index.php');
    exit();
}

?>
错误:


代码似乎是正确的,我只有在
电子邮件
电子邮件_code
匹配的部分,以及将数据库中的
活动
表更改为1时,才有这些内部服务。

我后来发现了错误,我只是更改了

header('Location : activate.php?success');

可能重复的
header('Location : activate.php?success');
header('Location: activate.php?success');