Microsoft JET Database Engine 错误 '80040e14' 什么意思啊!!

来源:百度知道 编辑:UC知道 时间:2024/05/22 13:51:04
Microsoft JET Database Engine 错误 '80040e14'

语法错误 (操作符丢失) 在查询表达式 'UID=' 中。

/innerbooks.asp,行 74

我感觉是这里的问题!

<%
ChkSqlIn '注入检测
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
Tempuid=trim(Request("uid"))
action=request("action")
if action="add" then
VerifyCode=replace(trim(Request.Form("VerifyCode")),"'","''")
Title = trim(request("Title"))
LinkName = trim(request("LinkName"))
Tel = trim(request("Tel"))
Fax = trim(request("Fax"))
WebSite = trim(request("WebSite"))
Address = trim(request("Address"))
Content = trim(request("Content"))
InfoType=trim(request("InfoType"))
uid=trim(request("uid"))

If CStr(Session("GetCode"))<>VerifyCode Then

NewsSql = "SELECT * FROM msg Where UID="&Tempuid&" order by ID desc"

这段的语法没有问题

剩下的就是tempuid这个值为空的,导致上句没有参数可以定位

Tempuid=trim(Request("uid")) 检查uid的来源是否正确

str 参数为空,或者不是整数

select id,播放服务器 from 服务器 where id=

上面SQL语句不能获得正确的id参数!