修改表中数据
请教各位高手,下面有一段代码修改表中数据,能成功运行,但查看表中数据都没有变化,真闷死人啊!查了半天都没有找到原因.<%
if request("objname")="考试计划" then
testid=request("testid")
sql="select * from exampaper where testid="& testid
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
if rs("passuserid")<>0 then
else rs("passuserid")=request.cookies("userid")
rs("pasttime")=date()
if request("yesorno")="同意" then
rs("paperpass")=1
else
rs("paperpass")=2
end if
rs.update
rs.close
sql="select * from waitforpass where objid="& testid
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
if request("yesorno")="同意" then
rs("ifpass")=1
else
rs("ifpass")=2
end if
rs("passuserid")=request.cookies("userid")
rs("pasttime")=date()
rs("passadvice")=request("passadvice")
rs.update
rs.close
end if
%>