I have the following which lists all of the subtopics of a topic(17)....I
want to then list the subtopics and articles of the list ....when I say
"mgd_list_topics" do the subtopic #s come back? could I then use them in a
statement at the end of this one that said use a variable set to the number
of the gotten subtopic to get its articles.....without the last section
this works fine...then I get a parse error....@ <? $topicart = &(topic.id);
?> I know this is some little stupid thing but my noggin will no longer
register it.......does that make sense or should I go home now?
<? if ($topic = mgd_list_topics(17)) while ($topic->fetch()) { ?>
<? if ($topic->code) { ?>
<P><h2><A HREF="/&(topic.code);/" TARGET="main">&(topic.name);
</h2><!--topicout-->
<? } else { ?>
<P><A HREF="/topicout/&(topic.id);.html" TARGET="main">&(topic.name);
<!--topicout-->
<? } ?>
</A></P>
<P>&(topic.description:h);</P>
<?
<? $topicart = &(topic.id); ?>
$article = mgd_list_topic_articles_all_fast( $topicart, "score");
if( $article->N == 0 ) {
echo "No article";
} else {
while( $article->fetch() ) {
?> &(article.name); <br> <?php
}
echo "$article->N article", ( $article->N == 1 ) ? '' :
's';
}
?>
<? } ?>
--
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]