populating menu php mysql
<p>I have 2 mysql tables like </p>

<p>categories : cat_id , categories</p>

<p>and </p>

<p>subcategories: subcat_id, cat_id, subcategories </p>

<p>from those 2 table I try to populate something like :</p>

<pre><code>&lt;div id="categories" class="box"&gt;
        &lt;h2&gt;Categories&lt;/h2&gt;
        &lt;div class="list"&gt;
          &lt;ul&gt;
            &lt;li&gt;
              &lt;a href="listingcat.html"&gt;&lt;b&gt;Electronics&lt;/b&gt;&lt;/a&gt;
              &lt;ul&gt;
                &lt;li&gt;&lt;a href="listingsubcat.html"&gt;Digital Cameras&lt;/a&gt;&lt;/li&gt;

              &lt;/ul&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;/div&gt;
      &lt;/div&gt;
</code></pre>
