Hello folks to a little problem with
Ta me doing that break the head.

I have a field in the table called "activated"
When a person enrolls this field is
Equals 0

After registering it goes in the email and click the link
Submitted to the verification and this field
It is updated to a

I'm wanting to redirect the person
To an error page if the user does not have
Done in the verification email. Can anyone give me a hint.
To break the head and not getting to.

The code I'm using is this:

***********************************************

include "config.php";
$email = $_POST['email'];
$senha = $_POST['senha'];

        $sql = mysql_query("SELECT * FROM usuarios WHERE email='{$email}' AND 
senha='{$senha}' AND ativado='0'");
        $login_check = mysql_num_rows($sql);

        if($login_check = 0){

                        header("Location: login_falhou_ativar.php");
                        }

******************************************************

ALREADY USED ANOTHER ONE AND ONLY WORKS WITH A TABLE WITHOUT
FILTER AND HANDLE THE FIRST USER.
*******************************************************************************
if($row_ativado['ativado'] == 0){
        Header("Location: login_falhou_ativar.php");

}
********************************************************


Reply via email to