Results 1 to 4 of 4
Thread: help needed
- 05-29-2010, 10:35 AM #1
Member
- Join Date
- Jan 2010
- Posts
- 72
- Rep Power
- 0
- 05-29-2010, 11:17 AM #2
Member
- Join Date
- May 2010
- Posts
- 11
- Rep Power
- 0
The next() method on your ResultSet object returns true if there is another row in your ResultSet. Since you have not started looping through it, this is the same as checking whether it is empty or not (that is, checking if there is a first row).Java Code:if (myResultSet.next()) { // ResultSet is not empty (the user was found); write code here } else { // Your ResultSet is empty (no user with the given username was found) }
Also, make sure that your username column is unique.Last edited by andy16; 05-29-2010 at 11:20 AM.
- 05-29-2010, 11:34 AM #3
Member
- Join Date
- Jan 2010
- Posts
- 72
- Rep Power
- 0
Thanx a lot
- 05-29-2010, 03:16 PM #4
Member
- Join Date
- May 2010
- Location
- china
- Posts
- 7
- Rep Power
- 0
Similar Threads
-
Help Needed Please
By ajaxjagadish in forum Advanced JavaReplies: 1Last Post: 02-12-2010, 07:25 PM -
Help Needed
By jyothi_tallapaneni in forum Advanced JavaReplies: 1Last Post: 02-11-2010, 07:07 PM -
Help needed
By harshalsakpal in forum CLDC and MIDPReplies: 0Last Post: 02-17-2009, 03:53 PM -
help needed
By amarchandar in forum New To JavaReplies: 3Last Post: 02-17-2009, 01:59 PM -
help needed.
By dirtycash in forum New To JavaReplies: 3Last Post: 12-03-2007, 09:17 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks