title: Reversing mysql_fetch_array()
body: <pre><code>function outputscores($mysqlquery,$reverse=false)
  {
      while($row = mysql_fetch_array($mysqlquery))
      {
          echo '&lt;img src="img/date.png" /&gt; ' . date("j M Y",strtotime($row['timestamp'])) . '
          &lt;img src="img/time.png" /&gt; ' . date("H:i:s",strtotime($row['timestamp'])) . '
          &lt;img src="img/star.png" /&gt; '.$row['score'].$_GET["scoretype"].'&lt;br /&gt;';
      }
  }
  </code></pre>
  
  <p>I need to reverse the array if $reverse is set to true, but PHP says that the <code>mysql_fetch_array</code>'s output is not a valid array. Neither is $mysqlquery itself.</p>
  
  <p>Is there any help?</p>
  
  <p>Wow I've asked so many questions today ._.</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>$result = mysql_query("SELECT * FROM $gid LIMIT 25") or throwerror(mysql_error());
  
  outputscores($result);
  </code></pre>
  
  <p><strong>EDIT2</strong>
  Another possible call:</p>
  
  <pre><code>$result = mysql_query("SELECT * FROM ".$gid.",users WHERE users.lastcheck &lt; ".$gid.".timestamp") or throwerror(mysql_error());
  
  outputscores($result);
  </code></pre>