i think problem in looping stmt.... try with if(rs.next())...
This post was so very helpful to me, Thank you:)
problem in update query
int i=st1.executeUpdate ("update userdetails set password='"+NewPassword+"' where uname='"+uid+"'"); try this
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.