Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/01/2008, 03:29
NiB
 
Fecha de Ingreso: octubre-2005
Mensajes: 59
Antigüedad: 18 años, 6 meses
Puntos: 0
Problema con funcion DIE

Hola,

Estoy modificando una aplicación y existe un punto en donde el usuario se identifica, si no existe el email en la bd devuelve un error:

Código PHP:
      //Check to see if our user exists
      
$_query="SELECT * FROM users WHERE `email`='$username' and `password`=
      '$password'"
;
      
      
$handle=mysql_query($_query) or die(mysql_error());
      
$handle_array=mysql_fetch_array($handle);
      
$handle_count=mysql_num_rows($handle);
      
      if(
$handle_array["validated"] != "1")
      {
        die(
"Email error, Please check your email and try again.");
      } 
Es posible sustituir la funcion "die" por alguna otra que dirija al usuario a una pagina?


gracias por adelantado