📄 infodel.asp
字号:
<%Response.Buffer=true%>
<!--
Programmer:jin kai
Update:2000.8.15
CopyRight:东宇电子商务
-->
<!--#include file="../include/odbc.asp" -->
<!--#include file="../include/killStr.asp" -->
<!--#include file="../include/checkUser.asp" -->
<!--#include file="../include/checkServer.asp" -->
<%
'修改:潘树文
'时间:2001年2月9日
%>
<%
If Request.Form("del") = "" Then
Response.Write("<script>alert('对不起,您没有选择任何删除项,请重新选择!');history.go(-1)</script>")
Response.End
conn.close
Set conn = nothing
Else
Dim sql,rs,strSql
Dim del,nu,i
'sql = "Select * From weather_city"
'Set rs = con.Execute(sql)
del = Split(Request.Form("del"),",")
nu = (len(Request.Form("del"))-len(replace(Request.Form("del"),",","")))/len(",")
For i = 0 to nu
strSql = "delete from weather_Info where city = '"& trim(del(i)) & "'"
conn.Execute (StrSql)
Next
conn.close
Set conn = nothing
Response.redirect "infoList.asp"
End If
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -