Setting the limit on the while function
<p>Kindly let me know how can I put the limit on the record in the below function.  I want to fetch all the record but one first page I want to show 5 only. Like pagination.</p>

<pre><code>while (($row = mysqli_fetch_array($rd)) ){

}
</code></pre>
