dealall.asp
来自「个人图书信息管理系统的程序代码」· ASP 代码 · 共 30 行
ASP
30 行
<html>
<head>
<title>个人图书信息管理</title>
</head>
<body>
<%
Dim id,ins,del,upd,count
id=Request.QueryString("id")
ins=Request.QueryString("ins")
del=Request.QueryString("del")
upd=Request.QueryString("upd")
Set conn=Server.CreateObject("ADODB.Connection")
conn.Open "Dbq=" & Server.Mappath("db/books.mdb") & ";Driver={Microsoft Access Driver (*.mdb)}"
If ins<>"" then
Response.Redirect("insert.asp")
End If
If del<>"" then
sql="delete from bookinfo where id=" & id
conn.Execute(sql)
Response.Write("删除成功!")
End If
If upd<>"" then
Response.Redirect("updatenew.asp?id=" & id)
End If
Set conn=nothing
%>
<p>
<!--#include file="back.htm"-->
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?