asp数据修改(编辑、更新)

<%

title=trim(request("title"))

title=request.Form("title")

cont=request.Form("cont")

time1=request.Form("time1")

publisher=request.Form("publisher")

set rs=server.CreateObject("adodb.recordset")

sql="Select * from news where id"

rs.open sql,conn,1,3

rs("title")=title

rs("cont")=cont

rs("publisher")=publisher

rs("time1")=time1

rs.update

conn.close

set conn=nothing

response.Write"<script language='javascript'>alert('信息修改成功!'); location.href='graduate_add.asp'</script>"

%>

posted @ 2018-06-08 11:09  黑旗君  阅读(306)  评论(0编辑  收藏  举报