title: switching pages base from $_GET['year'] without creating multiple files
body: <p>i have a drop down year button, which switches from 2011, 2012, 2013. my problem is how to display the specific quarter for the selected year without creating multiple files? example quarter 1(january, february, march) of year 2011 contains data and other values that the user input, but quarter 1 of year 2012 doesnt contain anything. so if i switch to year 2012, quarter 1 still displays but without values since it has no values in the first place. how will do that kind of switching?</p>
  
  <p>here is my code</p>
  
  <pre><code>&lt;?php    
       if(isset($_GET['year'])){
          $getyear=$_GET['year'];
       } else {
          $getyear=date("Y");
       }
  ?&gt;
  </code></pre>
  
  <p>for the fetching of sql data:</p>
  
  <pre><code>mysql_query("SELECT * FROM data WHERE month='$monthnow' AND type = 'Consumer' 
        AND year = '$getyear' AND category='$categid')
  </code></pre>
  
  <p>please disregard the other data, my only problem is on the year part.</p>