深圳晋汇基金诈骗:有关打开数据库时where条件的设置问题

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/03 05:27:05
我想用这么个链接(href="xxxxx.asp?xx=nn")然后根据"nn"调用数据库,可问题是"nn"有上百个,而且到了"xxxxx.asp"页面后,该怎么把"nn"转换成where条件语句?
感谢33427767的帮助,但是问题依然成在,我的表达式:
mylighy=trim(request("lighy"))
set rs1=server.createobject("adodb.recordset")
sqltext="select * from chanpin_fb where mylighy="&lighy
rs1.open sqltext,conn1,1,1
错处提示:
Microsoft JET Database Engine (0x80040E14)
语法错误 (操作符丢失) 在查询表达式 'mylighy=' 中。
chanpin011.asp, 第 8 行

myxx=request("xx")
sql="select * from biao where ab="&myxx
那也一样.照样取得出来.