I'm having some problems with a UL inside a UL. I'ts a dropdown menu, running on a foreach.
This is the HTML:
<ul>
<li class='a1'>Menu
<ul class="sub"><li>Sub 1</li><li>Sub 2</li><li>Sub 3</li></ul>
</li>
And this is the PHP:
if($result) {
$i = 0;
foreach($result as $r) {
$i++;
echo utf8_encode("
<li class='a".$i."'>".$r['nm_categoria']."</li>
");
}
}
I have no ideas how to do this.