記錄集合
Do While Not rs.eof If (username=rs("name") And userpassword=rs("pwd")) Then
If (username="admin") Then
session("admin")="admin"
session("username")=username
response.redirect "manager.asp"
Else
session("status")="ok"
session("username")=username
response.redirect "main.asp"
End If
Else
response.write "aa"
End If
rs.movenext
loop
當if語句為假時。為何response.write "aa"執行的次數是數據庫中的記錄條數呢?我想只輸出一次該如何處理!!!謝謝