Microsoft JET Database Engine (0x80040E14)语法错误 (操作符丢失) 在查询表达式 'id=' 中。

来源:百度知道 编辑:UC知道 时间:2024/06/11 01:10:09
<table width="991" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="180" align="center" valign="top"><table width="179" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="179" align="center"></td>
</tr>
</table></td>

<%
set rs=conn.execute("select * from prod where id="&request("id"))
if (not rs.bof)and(not rs.eof) then
%>
<td width="700" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="1%"><strong><img src="images/index_r3_c3.jpg" width="13" height=

需要传递一个id值!
也就是你的网页地址必须像下面这样:

http://yoururl/list.asp?id=5

你的list.asp接收到id=5后,
set rs=conn.execute("select * from prod where id="&request("id"))
上面这句将在prod表中取id=5的数据!

request("id") 没取到值吧