Chcę zrobić własny kanał rss. Mam Cały kod zrobiony, ale wywala mi taki błąd
"Warning: Cannot modify header information - headers already sent by (output started at /home/szukajn1/public_html/ogloszeniabezplatne.com/include/rss.php:1) in /home/szukajn1/public_html/ogloszeniabezplatne.com/include/rss.php on line 2
http://www.proba.pl Ogłoszenia
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/szukajn1/public_html/ogloszeniabezplatne.com/include/rss.php on line 20"
Kod jest taki:
<? ?> <xml version="1.0" encoding="utf-8"> <rss version="2.0"> <channel> <title>Rss</title> <link>http://www.proba.pl</link> <description>Ogłoszenia</description> </channel> <?php $zap = "SELECT * FROM _o_ogloszenia ORDER BY id DESC LIMIT 5"; { echo ' <item> <title>'.$row["ogl_tytul"].'</title> <link>'.$row["ogl_tytul"].'</link> <description>'.$row["ogl_tresc"].'</description> '; } ?> </rss> </xml>
Proszę o pomoc.