title: mysql query only returning a single row
body: <p>the following mysql query is only returning a single row when it should be returning 4.</p>
  
  <pre><code>$query = "SELECT * FROM questions";
      $result = mysql_query($query) or die("ERROR: $query.".mysql_error());
      // if records are present
      if (mysql_num_rows($result) &gt; 0) {
      while ( $row = mysql_fetch_object($result) ){
  
      // get question ID and title
          $qid = $row-&gt;qid;
          echo '&lt;div id=ques&gt;';
          echo '&lt;h2&gt;'.$row-&gt;qtitle .'&lt;/h2&gt;';
          echo '&lt;/div&gt;';
  
          print_r ($row);
  </code></pre>
  
  <p>the print_r function displays this:</p>
  
  <pre><code>stdClass Object ( [qtitle] =&gt; dummy text here [qid] =&gt; 1 )
  </code></pre>