View Single Post
Old 10-02-2008, 09:22 PM   #1 (permalink)
buildakicker
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Confused IF statements with XML files Magpie Parser

Hello all,

I have a XML file that I have set up with a <status> item. I have been trying to use an IF statement to grab the Items that only have <fostatus>YES</fostatus>. Why can't I just do this:

PHP Code:
            echo '<ul class="newsclass">';
        foreach (
$items as $item ){ 
if(!
$item['fostatus'] = 'NO'){        
        echo 
'<li><strong><a href="'.$item['link'].'">'.$item['title'].'</a></strong><br /><span class="readmorehilite">Forest Order #: ' .$item['ordernumber']. '</span> - <span class="readmore">In Effect? </span><span class="readmorefostatus">' .$item['fostatus']. '</span><br />' .$item['description']. '</li>';
            }
}
            echo 
'</ul>'
I am using Magpie to parse.
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote