Currently I've a database table call category:
Table attribute: id,parent_id,name
How can I make it display in the following structure?
<li class="dropdown level-0"><a href="#">electronics<img src="images/dropdown-arrow.png" alt="" /></a>
<ul>
<li class="level-1"><a href="#">Televisions</a>
<div class="level-1-div clearfix">
<ul>
<li class="level-2"><a href="catalog.html">Projectors</a></li>
<li class="level-2 last-level-2"><a href="catalog.html">DVD Players</a></li>
</ul>
<div class="productImageDiv">
<a href="catalog.html"><img src="images/product-image2.png" alt="" /></a>
</div>
</div>
</li>
</ul>
</li>