求助:Microsoft JET Database Engine 错误 '80040e14'

来源:百度知道 编辑:UC知道 时间:2024/05/25 01:45:08
Microsoft JET Database Engine 错误 '80040e14'
语法错误 (操作符丢失) 在查询表达式 'id= <font face=' 中。
/2/product_view.asp,行 55
product_view.asp代码如下:
省略不重要的(个人认为)
<!--#include file="left_pro.asp" --></td>
<td>
<table width="93%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="15"></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/right_pro.jpg" width="580" height="29"></td>
</tr>
<tr>
<td height="200" valign="top">
<table width="95%" border="0" align="

if request("id")<>"" then
id = request("id")
else
Response.Write("<script>")
Response.Write("alert('没有选定商品信息');")
Response.Write("history.back();")
Response.Write("</script>")
end if
当id为空时,你没有结束程序,程序会继续运行,导致sql语句中id等于空,所以会提示这个错误