PHP drop down menu
<p>I am doing a select on the database and some time it returns me 10 records and sometimes 1000, depending on the criteria of search. What I want is a drop down that will have break after every 30 records. something like this</p>

<pre><code>&lt;select id="dd" &gt;
  &lt;option value="0"&gt;1-30&lt;/option&gt;
  &lt;option value="30"&gt;31-60&lt;/option&gt;
  &lt;option value="60"&gt;61-90&lt;/option&gt;
  &lt;option value="91"&gt;91-120&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>How do I do that in PHP dynamically?</p>
