+ -
当前位置:首页 → 问答吧 → ASP 向SQL数据库中无法添加数据,求助

ASP 向SQL数据库中无法添加数据,求助

时间:2011-08-27

来源:互联网

If lcase(Request.ServerVariables("REQUEST_METHOD"))="post" then

Dim sql
sql="select * from message where gcmingcheng='"&request.form("t_gcmingcheng")&"'"
Set rs=DB(sql,3)
  if not rs.eof Then
Alert "工程名称有重复,请正确录入!",-1
  else
rs.addnew
  rs("createtime") = now()

rs.update

end if

rs.close:set rs=nothing
end if
这段代码有问题吗,为什么我提交时总是不成功,什么错误提示都没有,只提示内部服务器错误??郁闷的

作者: shorr   发布时间: 2011-08-27

IE 菜单-工具-internet选项-高级 中 去掉 显示友好http信息,看具体错误

作者: hookee   发布时间: 2011-08-28