![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
statement.executeUpdate("DELETE FROM items WHERE item_Id = '" +item_Id + "'"); |
#3
| |||
| |||
|
|
vivienne wykes wrote: statement.executeUpdate("DELETE FROM items WHERE item_Id = '" +item_Id + "'"); Make a string from your query, echo or print it somewhere before using it to make sure variables contain the data you expect them to contain. (Most common reason for errors.) It the query seems to be correct. Copy-paste it to mysql-console program and try to execute it from there. If it doesn't work from there, there is something wrong with the query. If it works, there is something wrong with the application from which you are sending the query. In that case try to catch errors and print out the error messages you might receive. They might give a hint about what is wrong. |
![]() |
| Thread Tools | |
| Display Modes | |
| |