open.asp

来自「一个人用ASP+SQL制作的个人博客」· ASP 代码 · 共 32 行

ASP
32
字号
<%Option Explicit%>
<!--#include file="articleconn.asp"-->
<%
dim RS,sql,strSQL,zhuinew
dim url,id,ddd,dddd
id	= Request.QueryString("id")
filmid=request("filmid")
if Trim(id) <> "" and IsNumeric(id) then
	Set RS = Server.CreateObject("ADODB.RecordSet")
	sql = "select * from url where id = " & id
	RS.Open sql, Conn, 3, 3
	url=rs("url")
	ddd=rs("filmid")
	RS.Close
	Set RS = nothing
end if
strSQL ="SELECT * FROM film where id=" & ddd 
Set zhuinew = Server.CreateObject("ADODB.Recordset")
zhuinew.open strSQL,Conn,3,3
	zhuinew("hits")=zhuinew("hits")+1
	filmtype=zhuinew("runsystem")
        zhuinew.update
	zhuinew.Close
	Set zhuinew = nothing
Conn.Close
Set Conn = nothing
%>
<HTML>
<BODY onload="opener.location.href='<%=url%>';window.close();">
</BODY>
</HTML>

⌨️ 快捷键说明

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