How to control the SQL limit
<p>I would like to know how to print 100 records then an image and then another 100 records. </p>

<p>I am trying to use the following code in order to control the sql limit, but would like to know how to do the above in the proper way.</p>

<p><strong>Total number of records are x numbers</strong></p>

<pre><code>$check_starts=0;
$check_ends=100;

$sql = mysql_query("SELECT * FROM names limit $check_starts,$check_ends")
or die(mysql_error());
</code></pre>

<p>i would like to know how to print 100 records in in every interval.</p>

<p>then I need a break after every 100 records.</p>

<p>thanks for your help.</p>
