origin纵坐标刻度设置:大侠们帮我看看这个程序那里不对好吗

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/19 13:39:51
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Refresh" content="2; URL=new.asp">
<title>新闻发布</title>
</head>
<body>
<!--#include file="mdb.asp"-->
<%
conn.open
biaoti=request.form("biaoti")
fubiaoti=request.form("fubiaoti")
zuozhe=request.form("zuozhe")
mm=request.form("mm")
dd=request.form("dd")
zhuti=request.form("zhuti")
sSQL="insert into new(biaoti,fubiaoti,zuozhe,mm,dd,zhuti)"
sSQL=sSQL & "values('" & biaoti & "','" & fubiaoti & "','" & zuozhe & "','" & mm & "','" & dd & "','" & zhuti & "')"
conn.execute sSQL
conn.close
set cnn=nothing
%>
<p align="center">
<%response.write "成功写入新闻:)"%></p>
<p align="center"><%response.write"3秒后跳转到查看新闻"%></p>
<p align="center"><%response.write">>>>>返回首页>>>>>"%></p>
<p align="center"><%response.write">>>>>查看新闻>>>>>" %></p>
</p>
</body>
</html>

显示错误类型:
ADODB.Connection (0x800A0E79)
对象打开时,不允许操作。
/writenew.asp, 第 11 行

麻烦大侠们帮我改改好吗

当前的程序代码没有问题,可能是你的引用页面mdb.asp里的代码有问题,已经对数据库进行了操作但没有进行结束操作,所以有错误出现。建议你把conn.open这一句去掉试试