I'm a little confused, not because I do not work this program.
mails compares a database with a variable.
$correo = "[email protected]";
$compruebaCorreo=mysqli_query($link, "SELECT * FROM email WHERE email='$correo'");
while($imprimeCorreo=mysqli_fetch_array($compruebaCorreo))
{
if($imprimeCorreo['email']==$correo)
{
echo "Ya recibió los tps por su suscripción al Boletín de Todopolicia.com";
}
if($imprimeCorreo['email'] != $correo)
{
echo "Registramos el correo";
}
echo $imprimeCorreo['email'];
}
The issue is that if equal, if it meets the first if and echo the while, but if it is not, do nothing, nothing prints, or even the second miss. Where is the fault?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…