以下為一段ASP修改記錄的源碼
但我一提交就出錯,請問這樣寫有什么問題嗎?
<%
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("../party.mdb")
sql="select * from weix where weix_id="&request.form("weix_id")
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
rs("dj")=request.form("dj")
rs("sj")=request.form("sj")
rs("bm")=request.form("bm")
rs("sqrq")=request.form("sqrq")
rs("zx")=request.form("zx")
rs("zxsj")=request.form("zxsj")
rs("yj")=request.form("yj")
rs("cw")=request.form("cw")
rs("cwsj")=request.form("cwsj")
rs("ts")=request.form("ts")
rs("wcqk")=request.form("wcqk")
rs("clr")=request.form("clr")
rs("bz")=request.form("bz")
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.redirect "abc.asp"
%>
[此贴子已经被作者于2006-1-17 8:55:07编辑过]