I've not worked with php or midgard before, and I have a pretty
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
the names.

<? $topic= mgd_list_topics(354);
if ($topic) for ($i = 0; $i < 25 && $topic->fetch(); $i++) { ?>
  <strong>&(topic.name);</strong><br>
<? $leveli=$topic->id;?>
<?}?>

<? $article= mgd_list_topic_articles(354);
if ($article) for ($i = 0; $i < 200 && $article->fetch(); $i++) { ?>
&(article.title:h); <br>
&(article.abstract:f);<br>
<? } ?>

Thanks for your help,
Sam



--
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]

Reply via email to