标题:記錄集合
取消只看楼主
rgbtdkjcel
Rank: 1
等 级:新手上路
帖 子:294
专家分:0
注 册:2007-3-26
结帖率:50%
 问题点数:0 回复次数:0 
記錄集合
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"執行的次數是數據庫中的記錄條數呢?我想只輸出一次該如何處理!!!謝謝
搜索更多相关主题的帖子: username response session admin 
2007-12-17 16:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-192978-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.389133 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved