📄 commentdel.asp
字号:
<%@LANGUAGE="VBScript" CODEPAGE="936"%>
<!--#include file="conn.asp" -->
<!--#include file="CHAR.asp" -->
<%
id=request.QueryString("id")
If id="" or IsNumeric(id)=False then
response.Redirect("error.asp")
end if
strsql="select CommentUser from comment where CommentID="&id
set rs=conn.execute(strsql)
if rs("CommentUser")=session("username") or session("usergroup")=3 then
strsql="delete from comment where CommentID="&id
conn.execute(strsql)
else
response.Redirect("error.asp")
end if
rs.close
set rs=nothing
CloseDatabase
response.redirect("photoview.asp?id="&request("pid"))
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -