Nevermind, I found some simple mistakes.

> <? 
> if ($topic) { ?>
> <p>This is a topic</p>
> <?
>   $lst = mgd_list_topics($topic);

$topic is an object, so I should have used $topic->id as the argument
above.

>   if(!$lst) {
> /* eventually will try to list any articles under topic here */
>     echo "mgd_list_topics($topic) failed.<br>";
>   }else{
>     while($lst->fetch()){
>       ?>&(lst.name);<br><?
>     }
>   }
> }
> if ($article) { ?>
> <p>This is an article</p>
> <[article]>
> <? } ?>
> <p>id: &(id); topic: &(topic.id); article: &(article.id);</p>
> <?
> ?>

Anyone interested in the final code when I'm finished?

-Rob


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