RSS Problem

webmasterbeta

New Member
Hey, I'm trying to create an RSS feed using PHP and MySQL but I get this error:
"XML Parsing Error: xml declaration not at start of external entity
Location: <!-- m --><a class="postlink" href="http://localhost/n-gen/index.php?p=rss">http://localhost/n-gen/index.php?p=rss</a><!-- m -->
Line Number 69, Column 1:
<?xml version="1.0" encoding="utf-8"?>
^"

That line isn't even on line 69... it's on the first if you forget the beginning PHP.
I have the start like this:
<?php
header("Content-Type: text/xml;charset=iso-8859-1");
mysql_connect("localhost", "root", "formyeyesonly");
mysql_select_db("ngen");
?>
<?xml version="1.0" encoding="utf-8"?>
<rss version="1.0">
...
 
Back
Top