public void DeleteResults(String TargetPHPFileSelectedComboBox) {
        PreparedStatement ps = null;
        int count = 0;
        ResultSet rs = null;

        // Adapted from http://developers.sun.com/docs/javadb/10.2.2/ref/rrefclob.html
        try {
            if ((conn = setConn()) != null) {
                System.out.println("Connected to database " + getDatabaseName());
            } else {
                throw new Exception("Not connected to database " + getDatabaseName());
            }

            conn.setAutoCommit(false);

            // Test to see if the Target PHP file is already in the DB
            ps = conn.prepareStatement("SELECT COUNT(*) FROM TARGET_PHP_FILES WHERE PATH=?");
            ps.setString(1, TargetPHPFileSelectedComboBox);

            rs = ps.executeQuery(); // get the result

            rs.next();
            count = rs.getInt(1);
            rs.close();
            ps.close();

            if (count != 0) {// The file already exists in the DB

                int n = 0;
                n = JOptionPane.showConfirmDialog(new JFrame(), "Do you want to delete the results of the injection in\n" + TargetPHPFileSelectedComboBox + "?", "Attention!", JOptionPane.ERROR_MESSAGE, JOptionPane.YES_NO_OPTION);
                if (n == JOptionPane.YES_OPTION) {//updates the file

                    // Clean previous vulnerability injections in the same file
                    System.out.println(TargetPHPFileSelectedComboBox);
                    ps = conn.prepareStatement("DELETE FROM VULNERABILITY_INJECTION_RESULTS WHERE ID IN (SELECT VULNERABILITY_INJECTION_RESULTS.ID FROM VULNERABILITY_INJECTION_RESULTS, TARGET_PHP_FILES WHERE TARGET_PHP_FILE=TARGET_PHP_FILES.ID AND TARGET_PHP_FILES.PATH=?)");
                    ps.setString(1, TargetPHPFileSelectedComboBox);
                    ps.execute();
                    conn.commit();
                    rs.close();
                }
            }
            conn.commit();
            ps.close();
            conn.close();

        } catch (Throwable e) {
            System.out.println("exception thrown:");

            if (e instanceof SQLException) {
                printSQLError((SQLException) e);
            } else {
                e.printStackTrace();
            }
        }
    }