网站上传图片时出现以下错误提示:
————————————————————————
Microsoft VBScript 运行时错误 错误 '800a01f4'
变量未定义: 'connstr'
/movie2/articleconn.asp,行 9
————————————————————————
下面是articleconn.asp的源代码,请大家帮我看看要怎么解决啊?谢谢
——————————————————————————
<%
'dim conn
'dim connstr
'Set conn = Server.CreateObject("ADODB.Connection")
'connStr="Provider=SQLOLEDB.1; Persist Security Info=True; Data Source=127.0.0.1; Initial Catalog=数据库名; User ID=用户名; Password=密码"
'conn.Open connstr
connstr="DBQ="+server.mappath("dataff/123541ff.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstr
%>
<%
function chkcookie(fString)
fString = replace(fString, "'", "")
fString = replace(fString, " ", "")
chkcookie = fString
end function
%>
————————————————————————————————————————