ASP update修改数据问题

来源:百度知道 编辑:UC知道 时间:2024/05/17 04:09:52
<%
if session("UserType")<>"A" then
response.Redirect("../index.asp")
end if
%>
<!--#include file="conn.asp"-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<%
id=request.QueryString("id")
sql="select * from tb_Active where Active_Name='"&session("User_Name")&"' and id="&id&""
set rs=conn.execute(sql)
%>
<body>
<form name="form1" action="Active_Laws.asp?id=<%=id%>" method="post">
<table width="517" height="201" border="1" align="center&

<% if request.Form("activetime1")<>"" then
activetime=request.Form("activetime1")
activecontent=request.Form("activetcontent1")
conn.execute(sql="update tb_Active set Active_Time='"&activetime&"' and Active_Content='"&activecontent&"' and jointime='"&date()&"' where id="&request.QueryString("id"))
你像上面的写法看一下,
就是在这句前面加一个conn.execute()

没有提示任何错误的话,就是你数据库 只是读 不是写的权限,给你的网站文件夹设置最高权限!