At the beginning of the for cycle, I declare once $offset, echo the month heading, execute the query and display its results via while and mysqli_fetch_assoc(). Then I increment the $offset variable, and the for cycle repeats itself, just until I want it to display months.