Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String ridy_username = kel_username.getText();
- String ridy_password = new String(kel_password.getPassword());
- JOptionPane.showMessageDialog(null, ridy_password);
- System.out.println(ridy_password);
- try{
- String query= " SELECT * FROM tb_login WHERE username='"+ridy_username+"' AND password='"+ridy_password+"'";
- ResultSet ridy_rs = ridy_st.executeQuery(query);
- if(ridy_rs.next()){
- {
- JOptionPane.showMessageDialog(null, "Berhasil Login");
- }
- }else{
- JOptionPane.showMessageDialog(null, "Gagal Login");
- }
- } catch (Exception e) {
- JOptionPane.showMessageDialog(this, e.getMessage());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement