Troubles displaying an associative array with PHP and HTML
- by Psyche
Hello,
I have the following HTML code:
<div id="newsTicker">
<span class="icon news"></span>
<ul>
[repeating structure]
<li>
<ul>
<li><a href="#">News 1</a></li>
<li><a href="#">News 2</a></li>
<li><a href="#">News 3</a></li>
</ul>
</li>
[/repeating structure]
</ul>
</div><!--/#newsTicker-->
I also have a PHP array with news (title an url) and I would like to know how can I repeat that code inside [repeating structure] and display 3 different news for each repeating structure.
Thank you.