title: more then 1 query per PHP document
body: <p>For a webpage im using data from mysql to display in charts etc.</p>
  
  <p>For each query that gives me data from mysql i have a seperate php document. is it possible to store more then one query in a php doc instead of creating a new php for every query?</p>
  
  <p>If so, how do i change this getJSON request (because as it is now it uses the whole php doc instead of the specific query i want to use)</p>
  
  <pre><code>department = $("#department").val();
              hospital = $("#hospital").val();
  
              //console.log('changed'); 
              $.getJSON('functions/charts_hospital.php', {
                  "hosp":hospital,
                  "dept":department},
  </code></pre>
  
  <p>I want to use the department and hospital variable in different queries within 1 php document..</p>
  
  <p>Thnaks in advance,</p>
  
  <p>Bart</p>