title: how to check, if there are still rows left from fetch_assoc loop?
body: <p>I loop trough the rows with this code:</p>
  
  <pre><code>while ($row = $result-&gt;fetch_assoc()) {
      //...
  }
  </code></pre>
  
  <p>But how is it possible before the <code>mysqli_fetch_assoc</code> to check if there will be a next record, or not? I mean, like: <code>$result-&gt;hasNext()</code></p>