Emiliano wrote:

> Ken Pooley wrote:
> 
> 
>> I don't seem to be able to control which of the returned is chosen by the
>> loop...I want the first alphabetically (which is actually
>> _space_NAMEofRECORD...the space hopefully forcing it to the top of the list)
>> I have tried all sorts of sorting methods, alpha, title, score, but it
>> always returns what appears to be the last record created...uh?
> 
> 
> I've tried this:
> 
> <? $article = mgd_list_topic_articles(8, "reverse created");
>    if ($article) for ($i = 0; $i < 1 && $article->fetch(); $i++) { ?>
>  &(article.id); : &(article.title);
> <? } ?>
> 
> Changing the sort order to "score", "reverse score", "created" and some
> others,
> all returned what I had expected.
> 
> The real fun started when I removed the trailing space for
> &(article.id);. The
> id would not show up at all, and if I changed it to &(article.title); I
> got his:
> 
> The Virtual Midgard Using Company, Corp.HTTP/1.1 200 OK Date: Tue, 27
> Feb 2001 13:56:04 GMT Server: Apache-AdvancedExtranetServer/1.3.14
> (Linux-Mandrake/2mdk) PHP/3.0.18+Midgard/1.4.1-dev
> Midgard/1.4.1-dev X-Powered-By: PHP/3.0.18 Connection: close
> Content-Type: text/html : The Virtual Midgard Using Company, Corp.
> 
> So it looks like send_headers was called too late, or rather, that our
> formatter spits out data too early? This is with midgard-php3 BTW.
> Does this ring a bell with anyone? David?

never seen that, though I've noticed that the parser eats up the \n 
right after a &(); or a <[]>, but I thought it was a feature...

I've not enough knowledge of the PHP3 parser modification to tell you 
what's wrong at this point...

> Emile
> 

-- 
Best Regards,
David Guerizec           Free Software Developer
Aurora R&D               [EMAIL PROTECTED]
Midgard core developer   http://www.midgard-project.org/


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

Reply via email to