Question: Related to Java and MySQL:
After I press the button and check my database, the row with ID 25 is still there. Why?

In QueryManager.java everything is set and working with the database.
This is in QueryManager.java:

```
public void removeGebruiker() {
        String query;
        query = "delete from gebruiker where gebruiker_ID = 25";
    }

```

In userPanel.java I can already add users to the database, but deleting does not work.
This is in userPanel.java:

```
private void removeUserActionPerformed(java.awt.event.ActionEvent evt) {
        WinkelApplication.getInstance().getQueryManager().removeGebruiker();
        JOptionPane.showMessageDialog(null, "Gebruiker is verwijderd", "Gebruiker", JOptionPane.INFORMATION_MESSAGE);
    }

```

Answer: 
You just construct a `String` and never execute the query that it contains.

In here:

```
String query;
query = "delete from gebruiker where gebruiker_ID = '25'";

```

Make sure you actually execute the query.

If the code really uses this [QueryManager](http://outfit4you2.googlecode.com/svn-history/r3/outfit4you2/src/connectivity/QueryManager.java), you need to call `dbmanager.executeQuery(query);` I think (though I am new to this code).
you need to execute the query  

try this link <http://www.roseindia.net/jsp/execute-sql-query.shtml>