Ver Mensaje Individual
  #5 (permalink)  
Antiguo 24/04/2009, 08:54
Avatar de Ronruby
Ronruby
 
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 16 años, 7 meses
Puntos: 416
Respuesta: problema de validacion de usuarios

Código php:
Ver original
  1. $activo = 1;
  2.     $sql_login = "SELECT * FROM miusb_usuarios where username = '".$_POST['usuario']."'
  3.                  and pass = '".$_POST['clave']."' and activo = '".$activo."'";
  4.                  
  5.     $rpta_login = mysql_query($sql_login) or die(mysql_error());
  6.     $row = mysql_fetch_assoc($rpta_login);
  7.    
  8.     if($row['activo']==1){

Sigues haciendo casi lo mismo. Tienes que eliminar la variable $activo, y hacer la consulta SIN ESTA.