這是一款asp教程 刪除指定記錄程序代碼哦
<%
數據庫教程連接
sub opendb()
set rs=server
set conn=server
conn
conn
end sub
判斷是否為登陸用戶
if session("username")="" and session("userpwd")="" then
response
end if
dim sql
獲取Id由地址欄傳過來的值
id=html_encode(request
if id="" or not isnumeric(id) then
response
else
sql="delete * from new where id="&id
call opendb()
conn
if err=
response
else
response
end if
end if
%>
使用方法
<a href="刪除</a>
From:http://tw.wingwit.com/Article/program/net/201311/14472.html