📄 dealall.asp
字号:
<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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -