请大家指点一下如何改正.多谢
Microsoft JET Database Engine (0x80040E14)语法错误 (操作符丢失) 在查询表达式 'Id = or SubjectId代码如下
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/BBS1.asp" -->
<%
if(Request("id") <> "") then Command1__MM_id = Request("id")
%>
<%
set Command1 = Server.CreateObject(")
Command1.ActiveConnection = MM_BBS1_STRING
= "DELETE FROM 论坛 where Id = " + Replace(Command1__MM_id, "'", "''") + " or SubjectId = " + Replace(Command1__MM_id, "'", "''") + " "
= 1
= 0
Command1.Prepared = true
Command1.Execute()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<meta http-equiv="refresh" content="2;URL=index1.asp">
</head>
<body bgcolor="#FFFFFF">
已经成功删除帖子,2秒钟后自动返回论坛
</body>
</html>
搜索更多相关主题的帖子: 操作符