this is the error that I want to fix first.
htmlentities() expects parameter 2 to be long, string given in <b>/home/.waddlerheater/joeldleo/corvinedesign.com/rss.xml</b> on line <b>27</b>
This is the code :
<?php header('Content-type: text/xml'); ?>
<xml version="1.0" encoding="ISO-8859-1" />
<rss version="2.0">
<channel>
<title>Corvine Design - Grand Rapids Web Design and Blog</title>
<description>A site dedicated to the work of Joel Leo, along with a weblog about my daily acitivities and ideas. Also contains a great image gallery.</description>
<link />http://www.corvinedesign.com/news.php
<copyright>Copywrite 2004 Corvine Design</copyright>
<?php
$conn = mysql_connect("mysql.corvinedesign.com", "xxx", "xxx");
$db = mysql_select_db("corvinedesign"); ?>
<?php
$doGet= mysql_query("SELECT * FROM news ORDER BY post_date DESC LIMIT 5");
while($item=mysql_fetch_array($doGet))
{
$post_id=$item['post_id'];
$post_title=strip_tags($item["post_title"]);
$post_text=strip_tags($item["post_text"]);
$post_text=substr($post_text,0,150);
$pubDate=strftime("%a, %d %b %Y %T %Z",$item["post_date"]);
?>
<item>
<title><?php print htmlentities($post_title,'ENT_QUOTES');?></title>
<description><?php print htmlentities($post_text,'ENT_QUOTES'); ?></description>
<link />http://www.corvinedesign.com/permanent.php?post_id=<? print $post_id; ?>
<pubDate><?php print $pubDate;?></pubDate>
</item>
<?php } ?>
</channel>
</rss>