Tema: if --- else
Ver Mensaje Individual
  #8 (permalink)  
Antiguo 03/12/2003, 18:51
fran86
 
Fecha de Ingreso: agosto-2002
Ubicación: Colón - Entre Rios - Argentina
Mensajes: 647
Antigüedad: 21 años, 7 meses
Puntos: 8
Intenta con esto:
Código PHP:
if (isset($_POST['Submit'])) {
    if (
mysql_num_rows(mysql_query("SELECT * FROM tabla WHERE email='".$_POST['email']."'")) > 0) {
        echo 
"EMAIL YA EXISTE EN LA BASE DE DATOS!!!";
    }else {
        
// Insert y todo eso
    
}