Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/04/2008, 23:15
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: ayuda con error

Prueba cambiar esto:
Código PHP:
$sql="select idUser from usuario
where login='$txtUsuario' and
password='$txtPasswd'"
;
$resultado mysql_query($sql); 
Por esto:
Código PHP:
$sql="select idUser from usuario
where login='$txtUsuario' and
password='$txtPasswd'"
;
$resultado mysql_query($sql) or die( "Error en $sql, error: " mysql_error() ); 
Saludos.