> i want to use $article = mgd_list_topic_articles_all(21); to select my news.
> But ho can i find out the right topic id? The 21 is only an example and i can
> not find the right id.

It depends what exactly You want to do.

The simplest way:

<? 
$article = mgd_list_topic_articles_all(21);
 while ($article && $article->fetch()) 
        { ?>

&(article.name); and its topic: &(article.topic);

    <? } ?>

if You want get article topic 
or:

<? $article = mgd_list_topic_articles_all($id); 
  if ($article) for ($i = 0; $i < 20 && $article->fetch(); $i++) { ?> 

&(article.name);

<? } ?>

You got 20 newest articles this way from all topics.
You may use type or whatever to additionaly filter all articles.
Or get all article , make an array, and do you want to do.



Piotras



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to