Código PHP:
$query = "SELECT mail from `mails` WHERE mail LIKE ".$mail;
Cita:
y cuando inserto texto plano: SELECT mail from `mails` WHERE mail LIKE [email protected] have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@dominio.com' at line 1
Cita:
Será la versión, o seré yo que olvidé algunos conceptos? (Hace como 4 años que no toco nada en PHP/Mysql)SELECT mail from `mails` WHERE mail LIKE texto planoYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'plano' at line 1
Saludos, y gracias de antemano