Hi all,
I'm experiencing a lot of trouble trying to create a script for my website. I'm making a database dependant menu, and I've spent a couple of days doing trial and error much to no prevail.
I'm using Twitter Bootstrap if anyone is familiar with it, and creating a drop down menu.
The code for each of these buttons is:
<div class="btn-group">
<a class="btn btn-inverse dropdown-toggle" data-toggle="dropdown" href="#">
WOD
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<!-- dropdown menu links -->
<li><a tabindex="-1" href="http://www.google.com.au">View the WOD</a></li>
<li><a tabindex="-1" href="#">WOD Archives</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Benchmarks</a></li>
</ul>
</div>
So, what I need to be able to do is call each menu that I have in the database, (I have 5), determine if it's a drop down, and if it is, echo the links for it inside of the <ul class="dropdown-menu">
It seems simple to me, but I cannot get it right.
Please help!
Cheers.