Advertisement
Guest User

Untitled

a guest
Dec 15th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. sql = "UPDATE USERS SET status = 'online' WHERE username = '" + username + "' AND password = '" + password + "'";
  2. try {
  3. db.createStatement().executeUpdate(sql);
  4. db.commit();
  5. } catch (SQLException e) {
  6. System.out.println("[LOGIN ERROR]: " + e.getMessage());
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement