Need MySQL help filling in information!
post here
or send me your skype in pm please (it's not allowed but this wil be paid good!)
I need help filling in the red things but you can't really help trough Rune-server only skype
Code:
public class VoteHandler {
public static boolean Vote = true;
final static int[][] itemData = {};
private static final String DB = "DATABASE";
private static final String URL = "DATABASE IP";
private static final String USER = "USER";
private static final String PASS = "PASS";
private static final Properties prop;
static {
prop = new Properties();
prop.put("user", USER);
prop.put("password", PASS);
//prop.put("autoReconnect", "true");
//prop.put("maxReconnects", "4");
}
public static Connection conn = null;
/**
* Connects to the database
*/
public static synchronized void connect() {
try {
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection("URL" + DB, prop);
System.out.println("Vote Handler: Success");
} catch (Exception e) {
System.out.println("Vote Handler Error: "+ e);
System.out.println("Setting vote to false to help not cause anymore errors.");
Vote = false;
}
}
grtz jonas