title: How to echo a query
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4794927/why-does-this-return-resource-id-2">Why does this return Resource id #2?</a>  </p>
  </blockquote>
  
  
  
  <p>I want to echo <code>mysql_query("SELECT SUM(onlineplayers) FROM servers")</code> but when I place echo in front, it says Resource Id #2 and when I add <code>or die(mysql_error());</code> at the end, it just outputs 1.</p>