posted 22 years ago
Here are part of my codes...
stmt = con.createStatement();
//Execute an SQL query, get a resultSet
rs=stmt.executeQuery("select userId, Password from security where userId ='"+userId+"' and password ='"+password+"'");
rs.next();
userId = rs.getString("userId");
stmt.close();