pp wrote:
>
> I got a little problem with getting correct topic's ID.
What problem would that be?
> <? $t_sam = mgd_list_topics(111);
> while ($t_sam->fetch(111))
As has been mentioned, the ID here is not needed (doesn't do anything)
> {
> ?>
> <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?
> 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.
Emile
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]