📄 del.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/shuju.asp" -->
<%
if(request.querystring("fid") <> "") then Command1__a = request.querystring("fid")
%>
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_shuju_STRING
Recordset1.Source = "SELECT * FROM fbbs"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
set Command1 = Server.CreateObject("ADODB.Command")
Command1.ActiveConnection = MM_shuju_STRING
Command1.CommandText = "DELETE FROM fbbs WHERE fid = " + Replace(Command1__a, "'", "''") + " "
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="602" border="0" cellpadding="0" cellspacing="0" mm:layoutgroup="true">
<tr>
<td width="269" height="135"></td>
<td width="248"></td>
<td width="85"></td>
</tr>
<tr>
<td height="48"></td>
<td valign="top"><font size="5"><a href="guanli.asp">删除成功!请返回!</a></font></td>
<td></td>
</tr>
</table>
</body>
</html>
<%
Recordset1.Close()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -