i am trying to create a login form in which i take user name ,email id and password. if the user is registered user the name ,id and password are stored into database in table.So when the user logs in i wanted to check by traversing through the database that the name and password are right so previuosly i was using ResultSet rs; rs.next(); method so it traverses through all the registered name in database but i felt this as abit long so i choose execute () method which returns boolean value if it gets the exact name and password but
below is my method
each time the query gets executed if the user is not registered ie user name is not present in the database then also i am getting value of b=true whereas i expect if user name and password is not present it must give b=false.
i dont know where i am going wrong ?
may be the method which i have used is not appropriate for use at this place.........
Anyone can help me on to what i must use or where i am going wrong it will be realy great thanks in advance.............
Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
dhwani mathur
Ranch Hand
Joined: May 08, 2007
Posts: 621
posted
0
hi shailesh!!!
Thanks for such a great reponse
i modified the query as shown by you as below
but i am stuck now somewhere else
i am storing this values when the user registers in a table ,and when the user logs in the name and password is getting verified in my query above when i use statement as
but i want to verify not only name before logging in but also password so i used query as
any help on the above will be realy great
thanks in advance!!
Dhwani:>Winning is not important but it is the only thing. [ February 04, 2008: Message edited by: dhwani mathur ]