$rss = '<?xml version="1.0" encoding="ISO-8859-1" ?>'; $rss .= '<rss version="2.0">'; $rss .= '<channel>'; $rss .= '<title>Lavasoft</title>'; $rss .= '<link>/blog</link>'; $rss .= '<description>Malware Encyclopedia</description>'; $result = mysql_query('SELECT title, teaser, timestamp FROM blog', $db); while($row = mysql_fetch_array($result)) { $rss .= '<item>'; $rss .= '<title>'.$row['title'].'</title>'; $rss .= '<link>'.'/blog/'.$row['title'].'</link>'; $rss .= '<description>'.$row['teaser'].'</description>'; $rss .= '<pubDate>'.$row['timestamp'].'</pubDate>'; $rss .= '</item>'; } $rss .= '</channel>'; $rss .= '</rss>';
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)