Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/webmedia/public_html/jecgardner/rss.php on line 19
Heres the rss.php page
CODE
<?php
header('Content-type: text/xml');
?>
<rss version="2.0">
<channel>
<title>The Title Of the RSS Feed.</title>
<description>Your description of the rss feed here.</description>
<link>YOURADDRESS/rss.php</link>
<link rel="alternate" type="application/xml" title="<?php echo "Title Of RSS Feed" href="http://www.newmedia.lincoln.ac.uk/jecgardner/rss.php" />?>
<?php
mysql_connect ('localhost', 'xxxxxx', 'xxxxxx');
mysql_select_db ('hullweb_jgardner');
//build and issue query
$sql ="SELECT * FROM php_blog ORDER BY timestamp";
$result = @mysql_query($sql,$connection)or die(mysql_error());
//create list block of results
while ($row = mysql_fetch_array($result)) {
$id = $row['id'];
$title = $row['title'];
$entry = $row['entry'];
$entry=strip_tags($entry);
$entry=ereg_replace(" "," ",$entry);
$timestamp = $row['timestamp'];
$timestamp = date("F j, Y");
?>
<item mmTranslatedValueHiliteColor="HILITECOLOR=%22Dyn%20Untranslated%20Color%22">
<title><? echo "$title"; ?></title>
<description><? echo "$entry"; ?></description>
<pubDate><? echo "$timestamp"; ?></pubDate>
</item>
<?
}
?>
</channel>
</rss>
I used codegrrl's tutorial too make my blog which I found very helpful!
Im also trying to do pagination on my blog so if you look at my home page and see an extra entry its coz I havent got the pagination working yet.. Would be cool if this site supplied a tutorial for pagination!
..Anyways. If anyone knows what the problem is with this RSS page please tell me!
Thanks
