Hello, I've got a menu, that is something like this:
<ul id="menu_cat">
<li><a class="cat1" href="#">category 1</a>
<ul>
<li><a class="cat2" href="#">category 2</a>
<ul>
<li><a class="cat3" href="#">category 3</a></li>
<li><a class="cat3" href="#">category 3</a></li>
<li><a class="cat3" href="#">category 3</a></li>
</ul>
</li>
<li><a class="cat2" href="#">Category 2</a>
<ul>
<li><a class="cat3" href="#">category 3</a></li>
<li><a class="cat3" href="#">category 3</a></li>
<li><a class="cat3" href="#">category 3</a></li>
</ul>
</li>
<li><a class="cat2" href="#">Category 2</a>
<ul>
<li><a class="cat3" href="#">Category 3</a></li>
<li><a class="cat3" href="#">category 3</a></li>
<li><a class="cat3" href="#">category 3</a></li>
</ul>
</li>
</ul> <!-- End of CAT1-->
</li> <!-- End of .Krmiva -->
</ul>
Now I need to make it dynamic, so the "Category 1, 2, 3" are taken from MySQL database, but I canť think of any other solution than making it something like 3 tables for CAT1, CAT2, CAT3 and than for every item in CAT1, selecting submenus from CAT2 and for every CAT2 selecting submenus from CAT3 ... which would mean to make like 20 "SELECT * FROM" queries.
Any idea? Thanks, Mike.