title: Resource id #6 as output?
body: <p>I am trying to display the ammouth of credits this individual has.
  But it keeps coming up with "Resource id #6", now ive been hitting google and stackoverflow, and i see people fixing it for others, but they dont really explain much...?
  The database name is test, members are in users, and users have a table called credits</p>
  
  <pre><code>&lt;?php
  session_start();
  include_once 'dbconnect.php';
  
  if(!isset($_SESSION['user']))
  {
   header("Location: index.php");
  }
  $res=mysql_query("SELECT * FROM users WHERE user_id=".$_SESSION['user']);
  $userRow=mysql_fetch_array($res);
  
  // Trying to display the ammouth of credits from this particular member...
  
  $credits=mysql_query("SELECT * FROM users WHERE user_id=".$_SESSION['user']);
  echo $credits;
  ?&gt;
  </code></pre>