Advertisement
Guest User

Untitled

a guest
Feb 5th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. if (!isConnect()) {
  2. conn = DriverManager.getConnection("jdbc:mysql://" + host + ":" + port + "/" + database, user, password);
  3. }
  4. }
  5.  
  6. MySQL.update("UPDATE `CoinSystem` SET Coins='" + removecoins + "' WHERE Name='" + Name + "'");
  7.  
  8. public static void update(String qry)
  9. throws SQLException
  10. {
  11. PreparedStatement ps = conn.prepareStatement(qry);
  12. ps.executeUpdate();
  13. ps.close();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement