Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/05/2004, 17:33
denisse_rb
 
Fecha de Ingreso: mayo-2004
Mensajes: 7
Antigüedad: 20 años, 11 meses
Puntos: 0
Tengo Problemas Con Los Querys Cuando Quiero Hacer Una Busqueda

<%

Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("\MR\BDMR.mdb"))


strSQL ="SELECT productos.Descripcion,automovil.carro,productos.ye ar FROM productos,automovil where 'productos.Descripcion ="&request.querystring("nombre")&" AND productos.id_cat=automovil.id_cat'"
Set objRS = oConn.Execute(strSQL)

while (not objRS.Eof)
Response.Write("<tr>")
Response.Write("<td width=47 height=22><font color=#000080 face=Arial Narrow><b>" & objRS("carro") & "</b></font></td>")
Response.Write("<td width=32 height=22>")
Response.Write("<p align=center><font color=#000080 face=Arial Narrow><b>" & objRS("year") & "</b></font></td>")
Response.Write("<td width=12 height=22>")
Response.Write("<p align=center><input type=text name=cant size=8 value=" & Request.QueryString("nombre") & "></p>")
Response.Write("</td>")
Response.Write("<td width=19% height=22>")
Response.Write("<p align=right><font color=#000080 face=Arial Narrow><b>" & objRS("Descripcion") & "</b></font></td>")
Response.Write("<td width=4 height=22><font color=#000080 face=Arial Narrow><b><img border=0 src=buttonaddtocart.gif></b></font></td>")
Response.Write("</tr>")
objRS.MoveNext
wend

oConn.Close
set objRS = nothing
set oConn = nothing
%>

'productos.Descripcion ="&request.querystring("nombre")&" no me esta respetando esta condicion, me presenta una busqueda en general, pero no la especifica que yo le estoy mandando,lo que le estoy manadando es un a cadena no se si me falta algo me pero no me la esta tomando en cuenta.
alguien me puede ayudar