asp 修改数据库信息页面请大家帮忙了,代码如下:
<!--#includefile="conn.asp"--><%setrs=server.CreateObject("adodb.recordset")rs.open"s...
<!--#include file="conn.asp"-->
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from gonggao where gonggao_id="&CInt(request.form("id")),conn,1,3
rs("gonggao_name")=trim(request.form("gonggao_name"))
rs("addname")=trim(request("addname"))
rs("gonggao_content")=trim(request("gonggao_content"))
rs("addtime")=now()
rs.update
rs.close
set rs=nothing
response.Write "<script language=javascript>
alert('修改成功!');window.location.href='shanchugonggao.asp';</script>"
response.end
%> 展开
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from gonggao where gonggao_id="&CInt(request.form("id")),conn,1,3
rs("gonggao_name")=trim(request.form("gonggao_name"))
rs("addname")=trim(request("addname"))
rs("gonggao_content")=trim(request("gonggao_content"))
rs("addtime")=now()
rs.update
rs.close
set rs=nothing
response.Write "<script language=javascript>
alert('修改成功!');window.location.href='shanchugonggao.asp';</script>"
response.end
%> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询