Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @FXML
- private boolean loginSuccessful() throws SQLException{
- connection = MySQL.Connect();
- String sql = "SELECT * FROM login WHERE username = ? and password = ?";
- pst = connection.prepareStatement(sql);
- pst.setString(1, tfUsername.getText());
- pst.setString(2, tfPassword.getText());
- rs = pst.executeQuery();
- return (rs.next());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement