if Action="newssave" then
namenn=request("namee")
writer=request("writer")
classid=request("selecta")
nei=request("nei")
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select Top 1 * from news"
rs.open sql,conn,3,2
rs.addnew
rs("writer")=writer
rs("time")=date()
rs("leibie")=classid
rs("newsname")=namenn
rs("text")=nei
Call AlertBack("信息录入成功",1)//这句有FUNCTION支持
end if
if Action="newssave" then
namenn=request("namee")
writer=request("writer")
classid=request("selecta")
nei=request("nei")
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select Top 1 * from news"
rs.open sql,conn,3,2
rs.addnew
rs("writer")=writer
rs("time")=date()
rs("leibie")=classid
rs("newsname")=namenn
rs("text")=nei
rs.update
Call AlertBack("信息录入成功",1)//这句有FUNCTION支持
end if
不写更新语句,数据库当然不会更新了。