try 
<? if ($article) $icon = $article->icon ?>

if article does not get set, then article will not be an object and php will barf..



>----- Original Message -----
> From: Ken Pooley <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Sent: Thu, 27 Sep 2001 16:11:41 -0500
> Subject: RE: [midgard-user] What I am I forgetting here?
> 
> What I am I forgetting here?Sorry this went out as an HTML e-mail...I was
> using a different computer...stupid Outlook....if anyone cannot read it but
> thinks they might have a suggestion,let me know....
> 
> 
>   -----Original Message-----
>   From: Ken Pooley [mailto:[EMAIL PROTECTED]]
>   Sent: Thursday, September 27, 2001 3:50 PM
>   To: [EMAIL PROTECTED]
>   Subject: [midgard-user] What I am I forgetting here?
> 
> 
>   1: <?   $article = mgd_get_article($argv[0]); ?>
>   2: <font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"
>   3: color = "330099">
>   4:
>   5:
>   6: <h3> &(article.title);</h3> </font>
>   7: <? $icon = $article->icon;?>
>   8: <? if($icon==0) { ?>
>   9: <font class="bawdee"><br>&(article.content:f);<br><left>
>   10: <? } elseif ($icon==1) { ?>
>   11: <font class="bawdee"><br>&(article.content:h);<br><left>
>   12: <?} else {?>
>   13: <font class="bawdee"><br>&(article.content);<br><left>
>   14: <? }  ?>
>   15: </font> <p>
> 
>   I keep getting a parse error on line 7....it looks right...the following
> works on another page:
> 
>   <? $topicnum = $topic->id;?>
>   <!-- echo "topicnum =". $topicnum; --!>
>   <? if ($topicnum==41) { ?>
>   <[if41]>
>   <? } elseif ($topicnum==46) { ?>
>   <[if46]>
>   <? } else { ?>
>   <[ifNOT]>
>   <? } ?>
> 



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

Reply via email to