📄 dellog.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("user")="" or session("group")="" then
response.write("<script>alert('您还没有登陆或登陆超时');window.location.href('index.asp')</script>")
response.end
end if
%>
<%
id=request.QueryString("id")
if id="" then
response.write("<script>alert('非法提交!');window.location.href('log.asp')</script>")
response.end
end if
set rs=server.CreateObject("adodb.recordset")
cmd="select * from log where id="&id
rs.open cmd,conn,1,3
if rs.eof then
response.write("<script>alert('无相关日志!');window.location.href('log.asp')</script>")
response.end
else
rs.delete
rs.update
response.write("<script>alert('成功删除日志!');window.location.href('log.asp')</script>")
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -