Thanx Emile!!
> - Print the value of $topic_list[$i] and make sure it's a valid topic,
> and that it indeed has articles.
Yes, That is the point.
> - You should always check the return value of mgd_list_topic_articles,
> so I'd do:
> while ($a && $a->fetch())
> or
> if ($a) while ($a->fetch())
No error but nothing displayed within content.
It happens beacuse midgard doesn't know from what topic id gets articles
I think.
( And most propably - I can't define it ;)) )
I defined it this way for the first page:
<?
if ($argc == 1) $id = $argv[0];
else $id=the_number_of_topic_which_I_want_to_sort ;
if ($create) $id = mgd_create_topic($id, $name, $description, $extra,
$owner, $code);
if ($modify && $id) mgd_update_topic($id, $name, $description, $extra,
$owner, $code);
if ($id && isset($score)) mgd_update_topic_score($id, $score);
if ($id) $topic = mgd_get_topic($id);
?>
And next I get topics which have ID-up the same as I defined within
code-init.
But problem begins with articles, I want for example display
article 278 - ID-up=70
article 500 - ID-up=75
article 17 - ID-up=160
and nothing happens....
I'll be VERY glad for any help.
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]