title: Displaying RSS with PHP question
body: <p>I'm trying to implement an RSS feed using PHP, as far as I can see it should be working, as if you view source of the page, you see the XML that should be output into the RSS feed (http://www.mattlewis.org.uk/web/rss.php)</p>
  
  <p>Here's the code for the page:</p>
  
  <pre><code>    header("Content-Type: application/xml; charset=ISO-8859-1");
      include 'includes/connection.php';
      print '&lt;?xml version="1.0" encoding="UTF-8"?&gt;';
      print '&lt;?xml-stylesheet type="text/xsl" href="rssXSLT.xsl"?&gt;';
      print '&lt;rss version="2.0"&gt;
  
      &lt;channel&gt;
      &lt;title&gt;FuseArt News&lt;/title&gt;
      &lt;description&gt;Welcome to our RSS news feed!&lt;/description&gt;';
  
   $query = "SELECT * FROM fuseArt_News";
   $result = mysql_query($query) or die ("Error in query: $query. ".mysql_error());
  
   while ($row = mysql_fetch_array($result))
   {
    $_xml .="&lt;news_item&gt;";
     $_xml .="&lt;title&gt;" . $row['Title'] . "&lt;/title&gt;";
     $_xml .="&lt;date&gt;" . $row['Date'] . "&lt;/date&gt;";
     $_xml .="&lt;article&gt;" . $row['Article'] . "&lt;/article&gt;";
    $_xml .="&lt;/news_item&gt;";
  
    print $_xml;  
   }
  
   print '&lt;/channel&gt;
   &lt;/rss&gt;';
  </code></pre>
  
  <p>Anyone got any ideas as to why it may not be outputting?</p>
  
  <p>Thanks</p>