For example, I've got MySQL table with all users data
How to make after user sign in, he sees his own username?
I've tried this:
con = DriverManager.getConnection(url, user, password);
stmt = con.createStatement();
rs = stmt.executeQuery(query);
while (rs.next()) {
String name = rs.getString(1);
System.out.println("username : " + name);
}
But it just shows all usernames in MySQL table.
