> >    <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);
> 
> $t->id will be the same as $t_sam->id,so you can probably drop the
> mgd_get_topic.
> 
> >         $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?

The problem is that I want list topics with <a href>.
Submit for checkbocks works fine.

> > BTW these articles have prices and when I sum them I lost everything
> > after ','.
> 
> PHP doesn't support arithmatic with ','. Do an ereg_replace on these to
> change the ','
> into '.' and it should work.

Oh, that's right!


-- 
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