public void DeletePHPFileFromDatabase(DatabaseAccess JavaDBAccess, String TargetPHPFileSelectedComboBox) {
        PreparedStatement ps = null;
        Connection conn = null;

        try {
            int n = 0;
            n = JOptionPane.showConfirmDialog(new JFrame(), "Do you want to delete from the database\nthe vulnerability injection results\nand all the information related to the file\n" + TargetPHPFileSelectedComboBox + "?", "Attention!", JOptionPane.ERROR_MESSAGE, JOptionPane.YES_NO_OPTION);
            if (n == JOptionPane.YES_OPTION) {//updates the file

                if ((conn = JavaDBAccess.setConn()) != null) {
                    System.out.println("Connected to database " + JavaDBAccess.getDatabaseName());
                } else {
                    throw new Exception("Not connected to database " + JavaDBAccess.getDatabaseName());
                }

                conn.setAutoCommit(false);

                // Test to see if the Target PHP file is already in the DB
                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.executeUpdate(); // get the result

                ps.close();
                // Test to see if the Target PHP file is already in the DB
                ps = conn.prepareStatement("DELETE FROM TARGET_PHP_FILES WHERE TARGET_PHP_FILES.PATH=?");
                ps.setString(1, TargetPHPFileSelectedComboBox);
                ps.executeUpdate(); // get the result

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

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