Well, I'm trying to log in to the little project and I'm having trouble if the $ login is correct go to the shopping.html if it is wrong, the wrong login or password appears.
$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>";
}
}