Jump to content

[SOLVED] got problem with my server.


sspoke

Recommended Posts

This is my error...

 

[java] java.sql.SQLException: You have an error in your SQL syntax; check t

he manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `id` = 1' at line 1

 

 

this code I use.

delbank = con.prepareStatement("DELETE FORM `user_bank` WHERE `id` = ?");

delbank.setInt(1, databasePlayerID);

delbank.executeUpdate();

 

what is wrong with Query nothing..  I see.. I get no good help at MySQL section either.

 

setInt(1, databasePlayerID);  replaces  the  ? with 1.

Link to comment
https://forums.phpfreaks.com/topic/68156-solved-got-problem-with-my-server/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.