Hello Ken,

Thursday, August 17, 2000, 12:41:29 AM, you wrote:

> 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()) ?>
Replace line 5 with
5: <? if ($topic = mgd_list_topics(240)) while ($topic->fetch()) { ?>
> 6: &(topic.name); |
> 7:
> 8: <? } else { ?>
And line 8 with
8: <? } } else { ?>


-- 
Best regards,
 Alexander                            mailto:[EMAIL PROTECTED]



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