That didn't work. I've just been reading and it said a lot of people were having troubles with that tutorial, so I'm going to remove it and put a new one I have found in its place, I'll let you know...
Type: Posts; User: Jonathansafc
That didn't work. I've just been reading and it said a lot of people were having troubles with that tutorial, so I'm going to remove it and put a new one I have found in its place, I'll let you know...
I found it, but because it was already commented out, I presumed that it was un-needed.
My code is the same, just I assumed it wasn't needed as I wasn't aware that was what created the syntax for...
I've just looked at another tutorial thread, and I found this.
public synchronized static void createKillDeathConnection() {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();...
Yes, I have that line.
It's // commented out, so is that why it's not working? o.O
What do you mean, did I look through it, the MysqlManager class definition?
Also, I searched for conn = - and it found a few, but it was just conn = null;
I also found public static Connection...
So I need to go to the connection class info?
So you told me to read The Big Index because you don't know how to fix it? :3
It doesn't say anything about assigning a connection a value...
This is my SQL table.
CREATE TABLE `status` (
`id` INT(10) NOT NULL AUTO_INCREMENT,
`date` TIMESTAMP NOT NULL DEFAULT...
There's two.
Trail: JDBC(TM) Database Access (The Java™ Tutorials)
A Relational Database Overview (The Java™ Tutorials > JDBC(TM) Database Access > JDBC Introduction)
Also, I don't even know what part I'm supposed to be looking at on that website.
I can do MySQL databases but I don't know how to use them in my server.
All I need to do is set conn a value, how do I do it. It's not that complicated.
Uh, I hate when people say that.
I know I have to learn, but I can't learn if I don't know what to look at, change etc.
Do you have MSN/Skype so we could chat on there?
How would I assign it the address of a Connection object? b-(
I got it from here : [PI] Auto Donation System with Items - NEW
Is their anyway you can help me, because the OP isn't active...
Oh wait, is it this?
public static Connection conn = null;
public static Statement statement = null;
public static ResultSet results = null;
Sorry for sounding like a complete noob, but where would I find this?
I'm new at programming, so I don't really know all the ins and outs.
It appears Line 43 didn't turn into size 5, so you couldn't see it.
This is line 43 below:
Statement stmt =...
I don't know what you mean.
I'll post my MysqlManager.java file, sec.
#2438939 - Pastie
java.lang.NullPointerException
at server.util.MysqlManager.checkVote(MysqlManager.java:43)
at server.model.players.Client.initialize(Client.java:81)
at...