【rs.update】无法正常更新
虚心请教各位师兄
<!-- #include file="conn.asp" -->
<%
id=request.querystring("id")
%>
<%
If request.Form("submit")="change" Then
cntitle=request.Form("cn_title")
cnauthor=request.Form("cn_author")
cncontent=request.Form("cn_content")
id=request.Form("id")
Set rs=server.CreateObject("adodb.recordset")
sql="select * from cnartile where cn_id="&id
rs.open sql,conn,3,2
rs("cn_title")=cntitle
rs("cn_author")=cnauthor
rs("cn_content")=cncontent
rs.update
rs.close
Set rs = Nothing
conn.close
set conn=Nothing
response.redirect("showit.asp")
%>
<% End If %>
<%
if id<>"" then
Set rs = Server.CreateObject ("ADODB.Recordset")
sql="select * from cnartile where cn_id="&id
rs.Open sql,conn,1,1
whattitle=rs("cn_title")
whoauthor=rs("cn_author")
whatcontent=rs("cn_content")
end if
%>
<form action="change.asp" method="post">
Title:<input type="text" name="title" value=<%=whattitle%>><br>
Author:<input type="text" name="authpr" value=<%=whoauthor%>><br>
Content:<br>
<textarea name="content" rows="8" cols="30"><%=whatcontent%></textarea><br>
<input type="submit" value="Change" name="submit">
<input type="reset" value="Reset">
<input name="id" type="hidden" value="<%=id%>">
</form>
<a href="showit.asp" align="center"><font color=blue>查看留言</font></a>
好像是更新的内容没有被写入数据库中 数据库连接是正常的 请各位师兄帮我看一下是不是顺序的问题 还是什么别的地方错了