while (rs.next ()){ userName=rs.getString("user"); passwrd=rs.getString("password"); }
here the string objects username and password will hold the last username and password and that user name and password is getting matched with the user name and password which is inputted fron the form. so i think we have to use array for storing user and password retrived from database using rs.next
View All Comments
| View Tutorial