How to repeat <h> tag using php
<p>I have a html syntax code as shown below </p>

<pre><code>                        &lt;h3&gt;Main Category&lt;/h3&gt;
                        &lt;h3&gt;cat2&lt;/h3&gt;
                        &lt;h3&gt;cat3&lt;/h3&gt;
                        &lt;h3&gt;cat4&lt;/h3&gt;
</code></pre>

<p>I need to repeat the list tag using php...</p>

<p>I have stored the query result in $cat, how can i repeat the header tag according to this
 looking for for loop</p>
