📄 deladmin.asp
字号:
<!--#include file = "inc/conn.asp" -->
<!--#include file = "CheckLogin.asp" -->
<!--#include file = "inc/zhuru.asp" -->
<%
Dim strID ,strUrl
strID = Request.QueryString("ID")
strUrl = "Index_Admin.asp?ID=" & strID
If strID &"" = "" Then
Response.Write("参数错误!")
Response.End
End If
If Session("UserType") <> "管理员" Then
Response.Write("您没有权限删除此信息!")
Response.End
End If
Dim rs ,strSql
strSql = "DELETE FROM Admin WHERE ID = "& strID
Set rs = Server.CreateObject("ADODB.Recordset")
rs.open strSql,conn,3,1
Response.Redirect(strUrl)
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -