新微赢技术网

标题: 斑竹进啊?求救!!(操作符丢失) 怎么回事啊? [打印本页]

作者: 满天星    时间: 2010-1-14 00:36
标题: 斑竹进啊?求救!!(操作符丢失) 怎么回事啊?
<%
f_id=request.querystring("f_id")
l_id=request.querystring("l_id")
if session("u_name")="" then
Response.Write "<script>alert('您未登陆!');location='detail.asp?l_id="& l_id &"&f_id="& f_id &"';</script>"
else
SQL="select * from bbs_user where u_name='"& session("u_name") &"'"
rs.open SQL,conn
set rs1=server.createobject("adodb.Recordset")
SQL="select * from bbs_lanmu where l_master ='"& session("u_name") &"' and l_id = "& l_id &""
rs1.open SQL,conn

if rs("u_level")<>3 then
if rs1.EOF then
Response.Write "<script>alert('您的权限不够!');location='detail.asp?l_id="& l_id &"&f_id="& f_id &"';</script>"
else
SQL="delete bbs_forum where f_id='"& f_id &"'"
conn.execute SQL
Response.Write "<script>alert('已删除此帖!');location='forum.asp?l_id="& l_id &"';</script>"
end if
else
SQL="delete bbs_forum where f_id="& f_id &""
conn.execute SQL 为第 26 行
Response.Write "<script>alert('已删除此帖!');location='forum.asp?l_id="& l_id &"';</script>"
end if
end if
%>



语法错误 (操作符丢失) 在查询表达式 'bbs_forum where f_id=4' 中。
/mybbs/delete_forum.asp, 第 26 行
作者: ぷぷ    时间: 2010-1-14 00:36
SQL="delete from bbs_forum where f_id='"& f_id &"'"

SQL="delete from bbs_forum where f_id="& f_id &
作者: 毅歌    时间: 2010-1-14 00:37
谢谢啊!!




欢迎光临 新微赢技术网 (http://bbs.weiying.cn/) Powered by Discuz! X3.2