网络寻呼机数据库版删除选中的消息deletemessage.asp
发布时间:2006-10-14 2:59:47   收集提供:gaoqian
<% response.buffer=true %>
<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>删除消息</title></head>

<body>
<%

id=request("id")
id=split(id,",")
page=clng(request("page"))

Set conn = Server.CreateObject("ADODB.connection")
    Provider = "Provider=Microsoft.Jet.OLEDB.4.0;"
    DBPath = "Data Source=" & Server.MapPath( "webuser.mdb" )

    conn.Open Provider & DBPath
    
    for i=0 to ubound(id)
        sql="delete from talks where id="&id(i)
        conn.execute(sql)
    next
    
    
    conn.close
    set conn=nothing
    response.redirect"history.asp?page="&page
%>
</body>

</html>

 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50