Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/06/2010, 15:18
The_Flash
 
Fecha de Ingreso: junio-2010
Mensajes: 6
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: ayuda en login

Cita:
Iniciado por Marvin Ver Mensaje
Tu problema esta en el die... necesita ():
Código PHP:
$nom    $_POST['nom'];
$pass    $_POST['pass'];
$conexion mysql_connect("localhost","09esi98","sup er3");
mysql_select_db("09esi98",$conexion);
$sql "SELECT NOM_USU, PASS_USU FROM USUARIOS_CS WHERE NOM_USU='$nom', PASS_USU='$pass'";
$result mysql_query($sql);

while(
$fila=mysql_fetch_array($result) or die(mysql_error())){
    if(
$fila['NOM_USU']==$nom && $fila['PASS_USU']==$pass ){
        echo 
"usuario correcto";
    }else{
        echo 
"usuario incorrecto";
    }

Suerte!
que necesita el die???
esque soy novato en esto....