Hi
i want to implement one servlet where first i want add a user to the database and later when he logged again i need to check that whether he is already existed or not?if he is not existed i need to add those details to the database... can any one help me in this.....?
mahaboob Basha 0 Light Poster
Recommended Answers
Jump to PostHi
i want to implement one servlet where first i want add a user to the database and later when he logged again i need to check that whether he is already existed or not?if he is not existed i need to add those details to the database... can any …
Jump to Postwhile (rs.next ()){
userName=rs.getString("user");
password=rs.getString("password");
}maybe it would be easier for us if you added what it does and what trouble you get in.
I can be wrong, but I think the above code will cause problems if you have more than 1 users with their passwords in your …
All 6 Replies
stultuske 1,116 Posting Maven Featured Poster
mahaboob Basha 0 Light Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
stultuske 1,116 Posting Maven Featured Poster
mahaboob Basha 0 Light Poster
stultuske 1,116 Posting Maven Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.