once I have requested my result set from my server, how do i store it as the variable that I want it to be?

EX.

ResultSet rs2 = st.executeQuery("select userIDnum from userInfo where username = '"+username+"'");

how do i then save userIDnum as an integer to use in my program?

while(rs2.next()){	    			
String var1=rs2.getString("strFeildName");
int var2=rs2.getInt("intFeildName");
}
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.