Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sql = "UPDATE USERS SET status = 'online' WHERE username = '" + username + "' AND password = '" + password + "'";
- try {
- db.createStatement().executeUpdate(sql);
- db.commit();
- } catch (SQLException e) {
- System.out.println("[LOGIN ERROR]: " + e.getMessage());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement