Hi,

I am just wondering if it is possible to explicitely set the cursor in
the object which is returned by

    mgd_list_topic_articles(int topic)

to a given position.

I have a page which lists news. I want to have exactly N news per page
followed by a link to the next N older news. I am currently doing this
by calling fetch()
K x N times before entering the loop which displays the next N articles.
K is the "page history depth".

This works, but I wonder if there is a smarter way. I do not want to
filter the news by a time window, because the news feed is irregular. I
could, of course, filter the news by the type field which would be set
at posting time and incremented every N postings.

Back to my intitial question: Is there an easier way to do this by
setting the cursor directly?


Frank

-- 
Dr Frank Boehme                      | Email: [EMAIL PROTECTED]
National University of Ireland, Cork | phone: +353-21-903163
Dept of Computer Science             |   fax: +353-21-903113
Cork, Ireland                        |

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