缺少操作符提示
<!--#include file="conn.asp"--><!--#include file="cookies.asp"-->
<%
if request.Form("title")="" then
response.Write("新闻标题不能为空")
else
if request.Form("nr")="" then
response.Write("新闻内容不能为空")
end if
end if
dim userid
dim title,nr
title=request.Form("title")
nr=replace(request.Form("nr"),chr(13),"<br>")
set rs=server.CreateObject("adodb.recordset")
sql="select * from news where id="&request.QueryString("id") 提示这里缺少操作符
rs.open sql,conn,3,3
rs("title")=title
rs("nr")=nr
rs.update
rs.close
set rs=nothing
conn.close
set conn=nothing
response.Redirect("editnews.asp")
%>