if request(\"cation\")=\"add\" then
id=request.QueryString(\"id\")
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=\"script language=\'javascript\'alert(\'信息修改成功!\');/script\"
response.Write\"script language=\'javascript\'parent.window.history.go(-1);location=\'main.asp\'/script\"
response.end
end if
<pre id=\"best-answer-content\" class=\"reply-text mb10\">\"br\")
if objconn.state=1 then
response.write\"欢迎使用数据库Exercise.mdb!\"
else
response.write\"对不起,无法打开数据库Exercise.mdb\"
end if
先用上面的代码测试一下数据库的连接是否正常,如果不能打开数据库多半是连接状态的问题,如果能打开数据库,问题可能出在数据类型不符合数据库的存储要求。
下面是0x80040E10的错误描述:
(0x80040E10)--sql语句出错(update字段名或要更新的数据类型错误)