Ok I know I have a ton to learn with java, I have been doing a homework assignment and for over a week now I have been trying to figure out how to get the insert to work for my assignment with no luck. Here is the code I am hoping someone has some pointers for me.
I keep getting the error code when I run it and I have triple checked my database connection and I cannot find a problem there.
Well, first of all you have no idea what caused your error, because you put in some code which ignores all the information which is built into the Exception and simply says "There was an error".
So start by replacing that by something like
I'm willing to bet that the actual problem is that you have fouled up your INSERT statement in some way, but it's impossible to tell how from your code. It's just a thicket of SQL quotes and Java string quotes which are easy to get wrong. I strongly suggest you check out PreparedStatement as a way to simplify that code. Of course it also might be something else like "level" being a reserved word, but once you fix your error reporting you should see a proper error message describing your problem.