📄 delinfo.asp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body,td,th {
font-size: 14px;
color: #003399;
}
-->
</style>
</head>
<body>
<%
Set conn=Server.CreateObject("ADODB.Connection")
conn.Open "Dbq=" & Server.Mappath("../db/info.mdb") & ";Driver={Microsoft Access Driver (*.mdb)}"
flag=Request("del")
if flag<>"" then
delSql="delete from teacherinfo where id=" & flag
conn.Execute(delSql)
End If
%>
<table border="1">
<tr>
<th scope="col">家教的求职信息内容</th>
<th scope="col">发布时间</th>
<th scope="col">是否删除</th>
</tr>
<%
nick=session("teacher")
strSql="select * from teacherinfo where nick='" & nick & "'"
Set rs=conn.Execute(strSql)
Do While Not rs.EOF
Response.Write("<tr><td>" & rs("content") & "<td>" & rs("puttime") &_
"<td><a href='delinfo.asp?del=" & rs("id") & "'>删除</a>" )
rs.MoveNext
Loop
%>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -