On Fri, 26 May 2000, Sam Grinstead wrote:
> basic question on loops. How do you imbed one loop in another? I want
> to display the information in a tree with each of the topic names followed
> by the articles in that topic. These two display all the topics, then all
To quote an unnamed shoes company, "Just Do It":
<? $topic= mgd_list_topics(354);
if ($topic) for ($i = 0; $i < 25 && $topic->fetch(); $i++) { ?>
<strong>&(topic.name);</strong><br>
$article= mgd_list_topic_articles($topic->id);
if ($article) for ($i = 0; $i < 200 && $article->fetch(); $i++) { ?>
&(article.title:h); <br>
&(article.abstract:f);<br>
<? } ?>
<? $leveli=$topic->id;?>
<?}?>
Emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]