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>"
%>