On Mon, 29 Nov 1999, Paul Vinciguerra wrote:
> I am trying to get an article to execute PHP in it's contents with no luck.
> I have the following page defined:
>
> **info
> <?php
>
> if ($argc == 1 && ($article = mgd_get_article($argv[0])))
> {
> ?>
> &(article.content:h);
> <?php
> }
> else
> {
> $info = mgd_list_topic_articles_all(16, "alpha");
Even if you're sure opic 16 exists, it's best to check the return
value anyway.
> while ($info->fetch()) { ?>
> <DT><strong><a href="&(info.id);.html">&(info.title);</a></strong></DT>
> <DD>&(info.abstract);</DD>
> <? }} ?>
>
>
> ** article.content(18.html)
> <IMG SRC="/images/cityhall.gif" HEIGHT=293 WIDTH=445 ALIGN=RIGHT>
> <H2>City Government Info</H2>Long Beach City government can be found in the
> center of town at city hall. The City Hall is home to:<br>
> <?php
> $info = mgd_list_topic_articles_all(18, "alpha");
> while ($info->fetch()) { ?>
> <strong><a href="&(info.id);.html">&(info.title);</a></strong><BR>
> <? } ?>
>
> If I change &(article.content:h); to &(article.content:p); I get nothing.
but the :h version does output HTML? When you get the empty page, view
the source (that'd be View/Page source for Netscape users); if there's
a page error it may well be presented but not rendered because the HTML
is not complete.
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]