I have a perplexing problem and I'm hoping someone can give me a tip that points me in the right direction.
I need to create a hierarchal list for some data and display it in a series of <ul> HTML lists. The query will return an array that looks like this:
array("cat1", "cat2", "info", "info2", "info3")
I need to somehow cycle through this array and output HTML that looks like this:
cat1
<ul>
cat2
<li> info, info2, info2</li>
</ul>
In other words, there will be a number of different cat1 and cat2 values, and I need to place the correct "info" into the cat1/cat2 it is associated with. The cat1 and cat2 combos will need to be dynamically generated.
Thanks for any insight.
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:1. Select the correct board for your query. Take some time to read the guidelines in the sticky topic.