OK...there is something dumb going on here, I have mis written something
but can't find my error....it should list the subtopics of topic 240 if the
id = 240 otherwise list the articles in the subtopic = id..... the second
part works fine, but the first part only gets the last subtopic in topic
240....any suggestions?
1: <? $topicnum = $topic->id;?>
2: <? echo "topicnum =". $topicnum; ?> <br>
3: <FONT SIZE=+1><B>Notes for the class of &(topic.name);</B></FONT>
4: <? if ($topicnum==240) { ?>
5: <? if ($topic = mgd_list_topics(240)) while ($topic->fetch()) ?>
6: &(topic.name); |
7:
8: <? } else { ?>
9: <? $article=mgd_list_topic_articles ($topicnum); ?>
10:
11: <?if ($article) for ($i=0; i<100 && $article->fetch(); $i++) { ?>
12:
13: <BR><B>&(article.title);</B> &(article.abstract); <BR>
14:
15: <? } else { ?>
16:
17: <BR><B>There are currently no notes for this class.</B>
18: <? } ?>
19: <? } ?>
--
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]