Michael Ed wrote:

> > 
> > [sorting news array from multiple sources]
> Sorry, Emile ! I got som other topic tree than this ...
> 
> > $topics = array(84,99);
> 
> Any clue ?

Yep, my bad. Corrected code below

<?php

$topics = array(84,99);
$limit = 10;

while ($topic = each($topics))
{
  $article = mgd_list_topic_articles_all($topic[value]);
  $i = 0;
  while ($article && $article->fetch() && ($i++) <= $limit)
  {
     $blixtart_date[$article->id] = $article->aldate;
     $blixtart_title[$article->id] = $article->title;
  }
}

asort($blixtart_date);

while (list($id,$date)=each($blixtart_date))
{
  echo "$id: $date $blixtart_title[$id]<br>\n";
}

?>

--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to