On Mon, 22 Nov 1999, Michael Ed wrote:

> How do I fetch the ten latest updates ?

<? $article = mgd_list_topic_articles_all(14, "reverse revised");
if ($article)
for ($i = 0; $i < 10 && $article->fetch(); $i++) { ?>
<a href="/article/&(article.id);.html"  class="menulight"
>&(article.title);</a>
<br>
(&(article.revised);)<br>
<? } ?>

> mgd_list_topic_articles_all(14, string [sort] ??? , int[type] ??? );

sort            order           on
----            -----           --
calendar        ascending       calender date
alpha           ascending       title
reverse alpha   descending      title
name            ascending       name
reverse name    descending      name
score           ascending       score (then ascending on title)
reverse score   descending      score (then ascending on title)
revised         ascending       revision date
reverse revised descending      revision date
created         ascending       creation date
<none>          descending      creation date

Bye,
Emile


--
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