title: Alternative to mysqli_fetch_all needed
body: <p>I have a php-mysqli code that works find one my local server but on using it on my server i am getting a </p>
  
  <pre><code>Fatal error: Call to undefined function mysqli_fetch_all() in /home3/t561257/public_html/admin/database.php on line 49
  </code></pre>
  
  <p>The following part of the code is where the problem is. </p>
  
  <pre><code> function fetch_rows($queryname) {
          $result = $this-&gt;connection-&gt;query($queryname);
          $row = mysqli_fetch_all($result, MYSQLI_ASSOC);
          return $row;        
      }
  </code></pre>
  
  <p>I use it in the following manner </p>
  
  <pre><code> $next_four_rows = $db_link-&gt;fetch_rows($query_four_latest);
  </code></pre>
  
  <p>$db_link is the class which has the method fetch_rows. </p>
  
  <p>I am using php 5.5 on my local server where as the server is running 5.4.27 I am really clueless on how to fix it </p>