Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/06/2002, 10:38
Avatar de bakanzipp
bakanzipp
 
Fecha de Ingreso: noviembre-2001
Ubicación: santiago de shilli
Mensajes: 2.554
Antigüedad: 23 años, 5 meses
Puntos: 0
Re: Pequeño error en código para entrar con passwords

bueno entonces haszle caso a aprendiz

Código:
  
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "bms.es.bms"
SQLQuery = "SELECT Usuario FROM datauser WHERE usuario='" & nom & "' "
Set RS1 = Conn.Execute(SQLQuery)

If RS1.BOF AND RS1.EOF then
Response.Redirect("error_usuario.htm")
End If

SQLQuery = "SELECT Clave FROM datauser WHERE Clave='" & password & "' "
Set RS2 = Conn.Execute(SQLQuery)

If RS2.BOF AND RS2.EOF then
Response.Redirect("error_password.htm")
End If

Response.Redirect("entrada_aceptada.htm")
se faltaba una comilla simple al cerrar la variable nom y password