> >
> > <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>&nbsp;&(article.title);</p></td>
> >    <td width="20%" bgcolor="#e5e4b7"
> > align="right"><p><b>&nbsp;&(article.abstract);&nbsp;</b></p>
> >   </td> <td><INPUT TYPE="CHECKBOX">
> >     <?   } ?>
> >     <?   } ?>
> >   <?   } ?>
> >   </td></tr></table><br>
> >
> > and get error:
> >
> 

I changed last code:

  <Form action="script2" method="get">   
  
     <p> 
 <? 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,   
                    $a->name ? htmlentities($a->name) : ('article #' .
$a->id), "\n");    
     ?>   
     </p>   
     <? } ?>   
     <? } ?> 
      
  
     <input type="submit">   
     </form>   
     

But nothing better happens , still $a is not an object.
When I changed article_list for topic_list, the url seemed to be
displayed correctly,
no error, but no content on the page.
This is midgard 1.2.5 with PHP3 and really articles and topics ofcourse.

Regards!!!

Piotras



-- 
http://www.studzinski.igk.pl
http://www.infoglob.com
http://agaipiotras.igk.pl

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

Reply via email to