This is my first time attempting PHP coding and I cant seem to figure it out exactly, so any help is very much appreciated.
Just in case I made a huge mess of this, its supposed to be looking into the xml file and check the viewer count. If VC is 0 then display an offline image if VC is anything else then display online image.
The only thing I get on a webpage is viewers_count!=0){ echo ''; }else{ echo ''; } ?>
[php]
<?php $xml = simplexml_load_file("http://api.justin.tv/api/stream/summary.xml?channel=halucen"); if($xml->viewers_count!=0){ echo ''; }else{ echo ''; } ?>[/php]