delete.asp
来自「与asp相关的技术 如数据库和网页设计 很有用的哦」· ASP 代码 · 共 25 行
ASP
25 行
<%
if session("user_type")<>"T" then
response.redirect "../../../../index.asp"
end if
%>
<%response.buffer=true%>
<!--#INCLUDE FILE="../../../../system/odbc_connection.asp"-->
<html>
<body>
<%
dim sql,rs,id
id=Request.querystring("id")
'删除所有发言部分
sql="delete from bbs where forumid =" & id
DB.Execute(sql)
sql="delete from bbs_forum where id =" & id
DB.Execute(sql)
db.close
set db=nothing
response.write "<script language='Jscript'> top.frames['bottom'].frames['left'].location.reload(); </script>"
response.write "<script language='Jscript'> top.frames['bottom'].frames['main'].location.replace('index.asp?board_id=" &board_id&"');</script>"
%>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?