我的程序在本地可以对数据库的数据进行修改,把程序传至服务后,不能将数据写入数据库中,也不显示任何错误。
<!--#include file="conn.asp"-->
<!--#include file="conn1.asp"-->
<%
hym=request("chrhym")
hybh=request("chrhybh")
old=request("oldchrhybh")
set rs=server.CreateObject("adodb.recordset")
set rst=server.CreateObject("adodb.recordset")
sql="select * from hyzl where chrhym='"&hym&"' and chrhybh='"&hybh&"'"
sqlu="update hyzl set chrhybh='"&hybh&"',old='"&old&"' where chrhybh='"&old&"' and chrhym='"&hym&"'"
conn.execute(sqlu)
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.Write "<script language=javascript>alert('转库不成功!');</script>"
response.Write "<a href='#' onClick='javascript:history.go(-1)'>返回</a>"
else
response.Write "<script language=javascript>alert('转库成功!');</script>"
response.Write "<a href='#' onClick='javascript:history.go(-1)'>返回</a>"
end if
%>