pp wrote:
>
> Hi!
>
> I got a little problem , but I don't get it even take it with midgard or
> just PHP.
>
> I got topics with such like this:
>
> <Form action="script1" method="get">
> <? if (!$action && ($t = mgd_list_topics($topic->id))) { ?>
> <p><? while ($t->fetch())
> printf('<li>
> <input
> type="checkbox"
> name="topic_list[]"
> value=" ' . $t->id . ' ">
> <a href="&(host.prefix);/%d.html">%s</a><br>%s', $t->id,
The &(...); syntax doesn't work inside PHP scripts. Why the spaces
around the ID, BTW?
> everything works fine , but now I want select few articles within these
> selected using this:
>
> <table width="70%" border="0" cellspacing="5" cellpading="5">
> <?
> for($i=0; $i<count($article_list);$i++) {
> $article = mgd_list_topic_articles($article_list[$i]); {?>
> <?
> while ($article->fetch())
> if ($article->title) { ?>
> <tr><td bgcolor="#e5e4b7"><p> &(article.title);</p></td>
> <td width="20%" bgcolor="#e5e4b7"
> align="right"><p><b> &(article.abstract); </b></p>
> </td> <td><INPUT TYPE="CHECKBOX">
> <? } ?>
> <? } ?>
> <? } ?>
> </td></tr></table><br>
>
> and get error:
>
If you just display $article_list[$i] in the list, do these numbers make
sense? What
does mgd_errstr() say right after the mgd_list_topic_articles?
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]