Ver Mensaje Individual
  #9 (permalink)  
Antiguo 18/04/2011, 17:19
nuevoconphp
 
Fecha de Ingreso: febrero-2011
Mensajes: 64
Antigüedad: 13 años, 2 meses
Puntos: 3
Respuesta: Sistema de Login

Cita:
Iniciado por nuevoconphp Ver Mensaje
ya lo arregle, aqui esta para quien le interece:

cambie:

Código HTML:
 $LoginRS__query=sprintf("SELECT usuario, pass_usuario, nivel_acceso FROM adminis WHERE usuario=%s AND pass_usuario=%s",
  GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text")); 

por:
Código HTML:
 $LoginRS__query=sprintf("SELECT usuario, pass_usuario, nivel_acceso FROM adminis WHERE usuario=%s AND pass_usuario=%s",
  GetSQLValueString($loginUsername, "long"), GetSQLValueString($password, "text")); 


mas arriva estaba el codigo este y no se me habia ocurrido mirarlo y es donde esta la respuesta:

Código HTML:
switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;

gracias a todos por su ayuda una ves mas

OOOHHH; se me olvidaba:

alguien sabe si este cambio que hice compromete la seguridad?