I got a little problem with getting correct topic's ID.

 <?  $t_sam = mgd_list_topics(111); 
     while ($t_sam->fetch(111)) 
     { 
   ?> 
   <INPUT type="checkbox" name="topic_list[]" value="&(t_sam.id);"><a
href="&(host.name);/&(t_sam.id);?action=list">&(t_sam.name);</a><br> 
   <!-- here is the list , and value is correct for every topic -->

   <? if ($action == 'list')
        { 
        $t = mgd_get_topic($t_sam->id); 
        $a_sam = mgd_list_topic_articles($t->id); 
        print  "<p>". $t_sam->name . " ------------ >></p>"; 
        /* always display last topic name */
        while ($a_sam->fetch()){  
         &(a_sam.name);<br>
        /* so at last displays last topic's articles */

Any idea? 
BTW these articles have prices and when I sum them I lost everything
after ','.

Piotras


-- 
http://www.milinski.com.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