⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updateipfrom.asp

📁 1、Conn.asp 数据库连接文件 2、ipCheck.inc ip数据库查询函数 3、oc_ipRecord.asp ip记录文件(被调用文件) 4、oc_ipRec
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT.Encode" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!--#include file="ipCheck.inc"-->
<%
ipstr=request("ipstr")
ipfrom=request("ipfrom")
dim conn,rs,sql
set conn = getConn_ip()
set rs=getRs()

sql="select top 1 * from [ip] where "&cip(ipstr)&" >=ip1 and "&cip(ipstr)&"<=ip2"
rs.open sql,conn,3,3
if(not rs.bof and not rs.eof) then
	rs("addr")=ipfrom
	rs.update
	backStr="updateOK"
else
	backStr="updateFailed"
end if

rs.close
conn.close

response.write(backStr)
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -