title: Call to undefined method mysqli::mysqli_fetch_all() after changing server
body: <p>My script was working fine on my localhost and when I uploaded it to my online host, I get a <code>Call to undefined method mysqli::mysqli_fetch_all()</code> error. I read up online and found out it has to do with a missing MySQLnd driver. </p>
  
  <p>My host uses c panel and I cannot install any extensions. My local php version is 5.5.12 and the one on my hosting server is 5.6.26 and the MySQL version is 5.5.52-cll. </p>
  
  <p>After reading up, I changed the <code>fetch_all()</code> to <code>fetch_assoc()</code>, the error went away but the DB only returns one result even though I am using it in a loop. What am I doing wrong?</p>
  
  <pre><code>if (!$errors) {
      if ($result = $mysqli-&gt;query($addresult)) {
          while ($row = $result-&gt;fetch_all()) {
              $returnResult = $row;
          }
      }
  }
  </code></pre>