title: Fetch from database not working?
body: <p>So I have the code below (and at the top the database connector and session start). However, he doesn't echo the amount of cubes (a valuta on my site).</p>
  
  <pre><code>$cubes = mysql_query("SELECT cubes FROM leden WHERE id='" . $_SESSION['id'] . "'");
  
  echo "You currently have " . $cubes;
  </code></pre>
  
  <p>What is going wrong here? The database is there, the tables and everything exist.</p>