public void newInvProduct(){
            int arr[] = new int [PID.length];
            try {
                Database db = dbconnect();
                String query = "INSERT INTO products_involved (ticket_TID, product_PID) VALUES "
                                     + "(?,?)";
		db.prepare(query);
                for (int i=0; i<= arr.length-1;i++) {
                    db.bind_param(1, this.TID.toString());
                    db.bind_param(2, this.PID[i].toString());
                    db.addBatch();
                }
                    db.executeBatch();
                    db.close();
            } catch (SQLException e) {
                    Error_Frame.Error(e.getMessage());
            }
	}