2013-10-04 45 views

回答

0

您已經提取的值從結果在下面的代碼:

if (rs!=null && rs.next()) { 
    orgUname = rs.getString("username"); 
    orPass = rs.getString("password"); 
} 

替換以下行,如下所示:

if (rs.next() && password.equals(rs.getString("password")) && username.equals(rs.getString("username"))) { 

if (password.equals(orPass) && username.equals(orgUname)) { 
+0

嘿,我改變了它,還是行不通... –