Hi, I'm working of writing an RSS feed with php and XML. So far I have the following;
while($row = mysql_fetch_array($result))
{
$items .= '<item>
<title>'. $row["title"] .'</title>
<link>'. $row["link"] .'</link>
<description><![CDATA['. $row["description"] .']]></description>
<enclosure url="video/' . $row["media_file"] .'" />
</item>';
}
I have come a little stuck with how to output the RSS enclosure tag can anyone advice me on how to do this please. I have this;
<enclosure url="video/' . $row["media_file"] .'" ';
' length="'. $row["length"].'" ';
' type="'. $row["type"] .'" />
But I am getting errors. Thanks in advance