title: PHP mysql_fetch_assoc() error
body: <p>I am trying to retrieve data that is collected in a function, that contains my query. I am returning the data back to the main page and printing it using a while loop however i am getting this error:</p>
  
  <pre><code>Warning: mysql_fetch_assoc() expects parameter 1 to be resource, string given
  </code></pre>