ASP的大哥大姐门,帮帮我!!急!在线等/...

来源:百度知道 编辑:UC知道 时间:2024/09/24 22:48:48
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" height="" border="0" align="center" cellpadding="0"cellspacing="0">
<%dim strsql

strsql="select * from product where id="&request("id")

set rs_tj=server.CreateObject("Adodb.Recordset")
rs_tj.open strsql,conn,1,1

%>
<tr >

打开提示说
错误类型:
Microsoft JET Database Engine (0x80040E14)
语法错误 (操作符丢失) 在查询表达式 'id=' 中。
/Cpshow.Asp, 第 95 行

就是strsql="select * from product where id="&request("id")

set rs_tj=server.CreateObject("Ad

优先Request.QueryString
其次到Request.form
点(.)后面可写可不写
对你这个问题解决,先要弄清楚ID从哪传来?是不是直接传给这个页面还是先到中间过渡页面后才传到这个页面

你的id值是从哪传来的?要是从地址栏里传来的要用
Request.QueryString("id")
要是从表单里传来的值要用
Request.form("id")
根据具体情况更改!
搞定要要给分还有给好评哈~

试试