Alexander Levenetz <[EMAIL PROTECTED]> said: 


> $topics = array(28, 59, 62); reset ($arr);


try

$topics = array(28, 59, 62); reset ($topics);
                                    ^^^^^^^^


>   while (list(, $topic) = each ($topics)) {
>   $article = mgd_list_topic_articles($topic, "reverse created");
>   if ($article && $article->fetch()) { $showlist[] = $article->id; }
> }
> 
> foreach ($showlist as $articleid) {
>   $article = mgd_get_article($articleid);
> ?>
> 
> Error messages:
> 
> Warning: Variable passed to reset() is not an array or object in
> content on line 105
> 
> line 105 is
> 
> $topics = array(28, 59, 62); reset ($arr);
> 
> Second error:
> 
> Fatal error: Call to unsupported or undefined function foreach() in
> content on line 111
> 
> Of course. 111:
> 
> foreach ($showlist as $articleid) {
> 
> What does that need to look like? Thanks.
> 
> Alexander
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



-- 
Technical Director
Linux Center (HK) Ltd.
www.hklc.com



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

Reply via email to