pp <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I changed a little admin site and have one problem with sorting articles
> if article
> has any content
>
> <?
> $article = mgd_list_topic_articles($id, alpha);
put quotes around "alpha", this is a character string.
> while ($article->fetch()){
$art = mgd_get_article($article->id);
if ($art->content){
> echo "no content";}
> ?>
> <a href="&(host.prefix);/&(article.id);">&(article.title);</a>
> <a href="&(host.prefix);/&(article.id);?action=modify">modify</a><br>
> <? } ?>
> everything works fine but this sorting. I got "no content" even if
> article has a content or not.
because fetch() doesn't fetch the entire object, for performance purpose.
see the modified code above.
> Piotras
--
Best regards, David Guerizec
http://www.guerizec.net/david/ http://www.imuable.org/
http://www.midgard-project.org/ http://www.aurora-linux.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]