pp wrote:

> <Form action="script2" method="get">
> 
>     <p>
>  <? for($i=0; $i<count($topic_list);$i++) {

Could you insert a echo $topic_list[$i] here, so we can see what
happens?

>   $a = mgd_list_topic_articles($topic_list[$i]); {?>

and echo mgd_errstr() here.

>  <? while ($a->fetch())
>             printf('<li>
>      <input
>        type="checkbox"
>       name="article_list[]"
>       value="'.$a->id.'">
>   <input type="hidden" name="topic_list[]" value="'.$topic_list[$i].'">
> //this is optional but doesn't seem to work
>      <a href="%d.html">%s</a><br> &(article.title); %s', $a->id,
>                     $a->name ? htmlentities($a->name) : ('article #' .

The &(...); syntax does not work inside PHP scripts.

> $a->id), "\n");
>      ?>
>      </p>
>      <? } ?>
>      <? } ?>
>     <input type="submit">
>      </form>
> 
> Script2

Is this script displaying what you expect?

> <?
>  for($k=0; $k<count($article_list);$k++) {
>    $article = mgd_list_topic_articles($topic_list[$i]); {?>
>    <?

where is $i being set? Outer loop?

Emile

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to