title: List of all months and year between two dates in PHP
body: <p>I am trying to explain the details so that this is easy to understand.</p>
  
  <p>I want a list of month and year based on the difference of month and year.</p>
  
  <p>I am implementing search functionality based on start month with year and end month with year.
  So!</p>
  
  <p><strong>start Selection - 01(month)-2009 (Yr)</strong></p>
  
  <p><strong>End selection 10(month)-2009 (Yr)</strong></p>
  
  <p>What I want from MySQL is:</p>
  
  <pre><code>Month                        Year
  JAN                          2009
  FEB                          2009
  MAR                          2009
  APR                          2009
  MAY                          2009
  JUN                          2009
  JUL                          2009
  AUG                          2009
  SEP                          2009
  OCT                          2009
  </code></pre>