WEB开发网
开发学院WEB开发ASP 网络寻呼机数据库版删除选中的消息deletemessage.... 阅读

网络寻呼机数据库版删除选中的消息deletemessage.asp

 2001-12-03 11:05:59 来源:WEB开发网   
核心提示:<% response.buffer=true %><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title&
<% 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>

Tags:网络 寻呼机 数据库

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接