Witam. Wyskakuje mi następujący błąd w validatorze:
Cytat
line 17, column 0: XML parsing error: <unknown>:17:7: no element found [help]
</item>
Mój kod:
<?php
header('Content-Type: application/xml; charset=utf-8'); include('db.php');
$rss .= "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n";
$rss .= "<rss version=\"2.0\">\r\n";
$rss .= "<channel>\r\n";
$rss .= "<title>MEGATalent</title>\r\n";
$rss .= "<link>http://www.megatalent.pl</link>\r\n";
$rss .= "<description>MEGATalenty - Talents Everywhere!</description>\r\n";
$rss .= "<image>\r\n";
$rss .= "<title>MEGATalent</title>\r\n";
$rss .= "<link>http://www.megatalent.pl</link>\r\n";
$rss .= "<url>http://megatalent.pl/_themes/default/img/logo.png</url>\r\n";
$rss .= "</image>\r\n";
$db_query = 'SELECT * FROM tentego_img ORDER BY id DESC LIMIT 5';
{
<title>'.$row["title"].'</title>
<link>http://www.megatalent.pl/img.php?id='.$row["id"].'</link>
<guid>http://www.megatalent.pl/img.php?id='.$row["id"].'</guid>
<description>'.$row["opis"].'</description>
</item>';
}
?>
Ten post edytował Recik 27.03.2013, 18:53:14