RE: [midgard] Question to midgard-functions

2000-03-09 Thread Anatol Mayr / HEXAGON

Thanks, i've tried to access the articles of my topics in the
same way, but the result is a little bit strange, because no articles
are shown.

My site-structure is the following:

topic(18)
 -- subtopic(27)
 article(28)

 -- subtopic(28)
 No article here at the moment

 -- subtopic(29)
 article(26)
 article(24)
 article(25)
 article(27)

Here's the script:

$topic = mgd_list_topics(18);
if ($topic) {
  while ($topic-fetch()) { ?
H3 class="grey"(topic.description:h);/H3
?php $article = mgd_list_topic_articles($topic-id);
if ($article)
  while ($article-fetch) { ?
a class="navi" href="/buchtipps/beschreibung/(article.id);.html"
(article.title);/a /P
  ?php
   }
  }
} ?


So, I thought the script does the following:
Go to topic 18, have a look, if there are subtopics.
If yes, show the description of the subtopic. ('til this
point everything works fine). Have a look if there are
articles in this subtopic. If yes, show the article-id.
(but this doesn't work.It seems that the script never runs in the
"while ($article-fetch)".



Anatol Mayr
HEXAGON EDV-Dienstleistungen
Weissenwolffstra?e 14
A-4221 Steyregg, Austria
Tel.: (+43) 732 / 640 530
Fax:  (+43) 732 / 640 530 - 20
Email: mailto:[EMAIL PROTECTED]



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



Re: [midgard] Question to midgard-functions

2000-03-09 Thread Emiliano Heyns

Anatol Mayr / HEXAGON wrote:
 
 Thanks, i've tried to access the articles of my topics in the
 same way, but the result is a little bit strange, because no articles
 are shown.

 $topic = mgd_list_topics(18);
 if ($topic) {
   while ($topic-fetch()) { ?
 H3 class="grey"(topic.description:h);/H3
 ?php $article = mgd_list_topic_articles($topic-id);
 if ($article)
   while ($article-fetch) { ?

  ^
while ($article-fetch()) { ?

 a class="navi" href="/buchtipps/beschreibung/(article.id);.html"
 (article.title);/a /P
   ?php
}
   }
 } ?
 

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]



RE: [midgard] Question to midgard-functions

2000-03-09 Thread Anatol Mayr / HEXAGON

Oh, oh, oh :-) thanks a lot - now it works fine!

Greetings to all of the midgardians,

Anatol

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Emiliano Heyns
Sent: Thursday, March 09, 2000 2:59 PM
To: [EMAIL PROTECTED]
Subject: Re: [midgard] Question to midgard-functions


Anatol Mayr / HEXAGON wrote:

 Thanks, i've tried to access the articles of my topics in the
 same way, but the result is a little bit strange, because no articles
 are shown.

 $topic = mgd_list_topics(18);
 if ($topic) {
   while ($topic-fetch()) { ?
 H3 class="grey"(topic.description:h);/H3
 ?php $article = mgd_list_topic_articles($topic-id);
 if ($article)
   while ($article-fetch) { ?

  ^
while ($article-fetch()) { ?

 a class="navi"
href="/buchtipps/beschreibung/(article.id);.html"
 (article.title);/a /P
   ?php
}
   }
 } ?


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]




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