title: Get the full result
body: <p>Is there a PHP function to get the full result with a mysql query in a multidimensional array?</p>
  
  <pre><code>SELECT * FROM table
  </code></pre>
  
  <p>Usually I would make something like this:</p>
  
  <pre><code>$query = mysql_query = ("SELECT * FROM table");
  while ($result = mysql_fetch_array($query){
      echo $result[0];
  }
  </code></pre>