1
Good, I’m trying to log in to the small project and I’m having a hard time in case $login is correct go to shopping.html if it is wrong login or password appears wrong.
$login = mysql_query("SELECT Nome, Password FROM tb_utilizador WHERE Nome ='$Nome' AND Password = '$Password'");
if ($login = TRUE ) {
header('location: Compras.html');
} else {
// falhou o login
echo "<p>Utilizador ou password invalidos. <a href=\"index.html\">Tente novamente</a></p>";
}
}