update.asp
来自「个人求职网源代码」· ASP 代码 · 共 33 行
ASP
33 行
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp" -->
<% If session("fbcpassword")<>"admin" Then
response.Redirect("main.asp")
end if%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>更新纪录</title>
</head>
<% if Trim(Request.QueryString("action"))="del" then
dim n_id
n_id=Trim(Request.QueryString("n_id"))
sql="select * from news where n_id="&n_id
rs.open sql,conn,1,3
rs.delete
rs.update
response.Redirect("index.asp")
end if
%>
<body>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?