The problem is that it gets stuck on
public static void queryChange(String string) {
System.out.println("Sending Query: "+string);
try{
System.err.println("queryChange 1");
Connect();
System.err.println("queryChange 2");
[COLOR="red"]conn.createStatement().executeUpdate(string);[/COLOR]
System.err.println("queryChange 3");
}catch(Exception e){
System.out.println("SQLException: " + e.getMessage());
}
System.out.println("Sent Query: "+string);
}
java doesnt error it just gets stuck.
Sent Query: UPDATE `servers` SET `playersCurrent` = '1' WHERE `id` = '1' ;
works fine.
Sending Query: INSERT INTO `players` (`uid`) VALUES ('1');
just sits there
i have tried
INSERT INTO `players` (`uid`) VALUES ('1');
in phpmyadmin and works fine
does anyone know what causes this/ anyone else has this problem