高分请教啊:一个带表格的asp网页链接到数据库怎么连?

来源:百度知道 编辑:UC知道 时间:2024/09/26 01:20:32
希望会的人QQ帮我改一下,
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/IsLogin.asp" -->
<!--#include file="conn.asp" -->
<!--#include file="../inc/Config.asp" -->
<%
dim action
action=request("action")
if action<>"" then
set rs=server.createobject("adodb.recordset")
id=Request.QueryString("id")
sql="select * from alluser where id="&id
rs.open sql,conn,2,3
rs.delete
rs.update
rs.close
set rs=nothing
call closeconn()
response.write "<script language=JavaScript>" & chr(13) & "alert('会员删除成功!');"&"location.href = '_Run.asp'"&" </script>"
Response.end()
end if
%>
<html>
<head>
<title>网站后台管理中心</title>
<meta HTTP-EQUIV="Content-Typ

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>

<!--#include file="inc/IsLogin.asp" -->
<!--#include file="conn.asp" -->
<!--#include file="../inc/Config.asp" -->
<%
dim action
action=request.QueryString("action")
if action<>"" then
set rs=server.createobject("adodb.recordset")
id=Request.QueryString("id")
sql="select * from alluser where id='" & id & "'"
rs.open sql,conn,2,3
rs.delete
rs.update
rs.close
set rs=nothing
call closeconn()
response.write "<script language=JavaScript>" & chr(13) & "alert('会员删除成功!');" & "location.href = '_Run.asp'" & " </script>"
Response.end()
end if
%>
<html>
<head>
<title>网站后台管理中心</title>
<m