怎么连接不上数据库???
程序代码:set conn=Server.CreateObject("ADODB.Connection");
conn.open "DRIVER={Microsoft Access Driver (*.mdb)};" "DBQ="& server.mappath("database/bank.mdb")
set rs=Server.CreateObject("ADODB.Recordset");
dim loginname,loginpassword;
loginname=trim(request.Form("username"));
loginpassword=trim(request.Form("password"));
rs.open "select * from salarym where USERNAME='"& loginname &"' and PASSWORD='"& loginpassword &"'",conn
if rs.eof then
response.write("false")
else
response.Redirect()
错误类型:
Microsoft VBScript 编译器错误 (0x800A0401)
语句未结束
/银行管理系统/loginpro/salarypro.asp, line 12, column 48
set conn=Server.CreateObject("ADODB.Connection");
-----------------------------------------------^