Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/02/2010, 16:17
Avatar de truman_truman
truman_truman
 
Fecha de Ingreso: febrero-2010
Ubicación: /home/user
Mensajes: 1.341
Antigüedad: 14 años, 2 meses
Puntos: 177
Respuesta: Conectar usuario

Cita:
Iniciado por David Ver Mensaje
Los datos de texto deben ir entre comillas en la consulta:
Código PHP:
Ver original
  1. $LoginRS__query=sprintf("SELECT `user`, password FROM `admin` WHERE `user`='%s' AND password='%s'",
  2.     GetSQLValueString($loginUsername, "-1"), GetSQLValueString($password, "text"));
Saludos.
Hice lo que dices y me tira este error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'fulanito''' at line 1

sabes por que amigo?