title: Prev and Next Buttons on PHP Calendar
body: <pre><code>href=\"index.php?month=". ($month - 1) . "&amp;year=$year
  
  href=\"index.php?month=" . ($month + 1) . "&amp;year=$year\
  </code></pre>
  
  <p>The first link makes the calendar go back one month when clicked, and the second link makes the calendar go forward one month, the problem is if $month = 1 i.e. "Jan" then $month equals 0.</p>
  
  <p>I'm trying to instead get 0 to be 1 and get $year to decrement by 1.</p>
  
  <p>Any suggestions on the most efficient way to do this?</p>