title: mysqli fetch_all() not a valid function?
body: <p>Thanks to the answers I have figured out that I am unable to use <code>fetch_all()</code> because i am using <code>PHP 5.2.17</code> - <code>fetch_assoc</code> with <code>while</code> loop worked.</p>
  
  <hr>
  
  <p>The function I am using <code>fetch_all</code> is coming back with this error: </p>
  
  <blockquote>
    <p>Fatal error: Call to undefined method mysqli_result::fetch_all() in</p>
  </blockquote>
  
  <pre><code>$mysqli = new mysqli($host, $username, $password, $database);
  $query = "LONG QUERY that works, tested in phpmyadmin"
  $result = $mysqli-&gt;query($query);
  $result-&gt;fetch_all(); or  $mysqli-&gt;fetch_all() tried both
  mysqli_fetch_all() was already tried.
  $mysqli-&gt;close(); 
  </code></pre>
  
  <p>I am able to connect to the DB and I have pulled single rows. When I place the query in PHPMYADMIN I get 5 rows back. </p>
  
  <p>Does this function even work? Is there a way I can place my data into an assoc array on my own?</p>