初学,asp的数据库连接问题 代码 <%@ language="javascript" %> <html> <body> <% inname=Request("name") inpass=Request("pass") set conn=Server.Createobject( "adodb.connection ") conn.Open "Driver={Microsoft Access Driver(*.mdb,*.accdb)};DBQ= "&Server.MapPath( "db.accdb ") Set rs=con.Execute("SELECT* FROM data WHERE uname='"&inname&"'") truepass=rs("upass") if inpass=truepass then response.write("success!") else response.write("fail!") end if %>
<p>用户编号: <%response.write(rs("uid"))%> </p>
<% Set rs=Nothing conn.close %> </body> </html>
运行后出项问题,帮忙看看怎么解决: 技术信息(用于支持人员)
错误类型: Microsoft JScript 编译错误 (0x800A03EC) 缺少 ';' /hy.asp, line 25, column 4 set conn=Server.Createobject( "adodb.connection ") ---^
浏览器类型: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3; SE 2.X MetaSr 1.0)