Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try{
- Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/testegrila", "root" ,"");
- PreparedStatement posted = con.prepareStatement("INSERT INTO mytable (nume ,username, password) VALUES ('"+Numeutilizator.getText()+"','"+Username.getText()+"', '"+Parola.getText()+"')");
- posted.executeUpdate();
- JOptionPane.showMessageDialog(null , "Cont creat");
- } catch(Exception e){System.out.print(e);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement