?? 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 + -