> Hi!
> It's very strange for me but very simple function doesn't want to work
> properly.
> 
> 
> <?  $t_sam = mgd_list_topics(111);
>     while ($t_sam->fetch(111)) {

this line should be : while ($t_sam->fetch()) {

>  ?>
> topic:<a
> href="&(host.name);/hurt-test/&(topic.id);?action=list">&(topic.name);</a><br>
>   <?  }  ?>
> 
> if I got 10 topics in 111 topic
> it displays 10 times 'topic' without link
> but if I change $t_sam for $topic eveything works fine, but I can not
> have
> $topic as var.

then try instead:
topic:<a href="&(host.name);/hurt-test/&(t_sam.id);?action=list">&(t_sam.name);</a><br>

check the name of the host variable too.

> Any suggestions
> 
> Piotras
> 
> 


--
David


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

Reply via email to