#12003/4/3 16:30:36
set con=server.createObject("ADODB.connection")
con.open"driver={Microsoft Access Driver (*.mdb)};dbq=" & Server.MapPath("../database/db1.mdb")
set tt=server.CreateObject("ADODB.recordset")
tt.open"select * from user where username='"&request.Form("username")&"' and pass='"&request.form("pass")&"'",con,1
if tt.bof or tt.eof then
response.Write("good")
end if
为什么我数据库里有的username和pass,它运行的结果仍然是要显示good呢!郁闷!