pp wrote:
> <? for($i=0; $i<count($topic_list);$i++) {
> $a = mgd_list_topic_articles($topic_list[$i]); {?>
> <? while ($a->fetch())
> printf('<li>
> <input
> type="checkbox"
> name="article_list[]"
> value=" ' . $a->id . ' ">
> <a href="&(host.prefix);/partner/%d.html">%s</a><br> %s', $a->id,
- What does mgd_errstr() say after the mgd_list_topic_articles?
- Print the value of $topic_list[$i] and make sure it's a valid topic,
and that it indeed has articles.
- You should always check the return value of mgd_list_topic_articles,
so I'd do:
while ($a && $a->fetch())
or
if ($a) while ($a->fetch())
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]