Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- String host ="jdbc:derby://localhost:1527/UserData";
- String DBusername="mohammad";
- String DBpassword="0598087382";
- String userName=lblApplicantName.getText();
- Connection cn = DriverManager.getConnection(host,DBusername, DBpassword);
- String command ="UPDATE MOHAMMAD.USERTABLE SET ISACCEPTED =TRUE WHERE USERNAME='"+userName+"'";
- Statement stmt =cn.createStatement();
- stmt.execute(command);
- stmt.close();
- cn.close();
- logIN.cellNo[cellIndex]=0;
- cellIndex++;}
- catch (SQLException e) {
- JOptionPane.showMessageDialog(null, e.getMessage(),"can't connect to DataBase",0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement