On 9 Mar, Anatol Mayr / HEXAGON wrote:
<snip>
> I want to show the topics in a structure like this:
>
> --- topic 1
> --- article 1 of topic 1
> --- article 2 of topic 1
> --- article 3 of topic 1
> --- topic 2
> --- article 1 of topic 2
> --- article 2 of topic 2
> --- article 3 of topic 2
> ..........................
You could do something like this:
<?php
$topic = mgd_list_topics(18);
if ($topic) {
while ($topic->fetch()) { ?>
<h2>&(topic.name);</h2>
<?php
$art = mgd_list_topic_articles($topic->id,
'alpha');
if ($art) {
while ($art->fetch) { ?>
<p>&(art.title);</p>
<?php }
}
}
} ?>
> Anatol Mayr
/Bergie
--
-- Henri Bergius -- +358 40 525 1334 -- [EMAIL PROTECTED] --
http://www.iki.fi/Henri.Bergius
--
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]