Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/02/2007, 06:06
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 4 meses
Puntos: 126
Re: Problema variables ASP

Supongo que tanto "ref y ref2" pasan números, así podrías hacer

Código:
refer=CInt(request.QueryString("ref"))
refer2=CInt(request.QueryString("ref2"))
Para ver lo que estás recibiendo en la consulta, haz esto, sin las comillas simple en -refer2-


Código:
Set entrega = Server.CreateObject("ADODB.Recordset")
entrega.ActiveConnection = MM_lai_STRING
entrega.Source = "SELECT * FROM vivienda WHERE ref="&refer&" and ref2="&refer2&""
entrega.CursorType = 0
entrega.CursorLocation = 2 
entrega.LockType = 1
entrega.Open()
response.write entrega.Source
response.end
Suerte