首页 > 编程 > ASP > 正文

ASP中数据库纪录的修改

2024-05-04 11:06:03
字体:
来源:转载
供稿:网友
<%

id=request("id")
if request("action")="update" then
set rs=server.createobject("adodb.recordset")
sqltext="select * from 表 where id="& id
rs.open sqltext,conn,1,3

rs("x_name")=request.form("x_name")
rs("x_biaojia")=request.form("x_biaojia")
rs("x_leixun")=request.form("x_leixun")

rs("x_shijian")=request.form("x_shijian")
rs("x_shuoming")=request.form("x_shuoming")
rs("x_jingdian")=request.form("x_jingdian")
rs("x_anpai")=request.form("x_anpai")
rs("x_zhushi")=request.form("x_zhushi")

rs.update
rs.close  
set rs=nothing 

response.redirect "转向页.asp"

end if

%>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表