This code works fine on browsers other than IE.
echo "
<item>
<link>http://www.example.com/showrssdetails.php?id=".$row[recordid]."</link>
<guid isPermaLink=\"true\">http://www.example.com/showrssdetails.php.php?id=".$row[recordid]."</guid>
<title>".$row[company]."</title>
<description><! [CDATA[".$row[desiredcandidate]."]]></description>
<comments>http://www.example.com/showrssdetails.php.php?id=".$row[recordid]."#Comments</comments>
</item>";
IE gives error on line 6:
An invalid character was found in text content. Error processing resource ‘http://example.com/job_listing_rssxml.php…
It should be
not
it finds the ‘>’ at the end there and doesn’t like it.
You also need to change all ‘”‘, ‘<‘ and ‘>’ inside your php code snippet to html entities.
You should do it this way:
And get it back out like this: