相关代码 |
|
set rs=server.createobject("adodb.recordset") rs.open "select * from shop_news where newsid="&request.Form("id"),conn,1,3 rs("newsname")=request.Form("newsname") rs("addname")=request.Form("addname") rs("pic")=request.Form("pic") rs("newscontent")=request.Form("newscontent") rs("adddate")=date() rs.update rs.close set rs=nothing response.write"alert('修改成功!');" response.write"this.location.href='news.asp?page="&request("page")&"';" %>