<?php //header("Content-Type: application/xml; charset=ISO-8859-1"); include_once "addlogic.inc.php"; include_once "lifestylelinking/rsscode/classes/RSS.class.php"; $lifestylelid = escapeinteger($_GET['lifestyleid']); //echo $lifestylelid; //$lifestylesubid = escapeinteger($_GET['lifestylesubid']); //echo $lifestylesubid; $rss = new RSS(); echo $rss->GetFeed($lifestylelid);
<?php header("Content-Type: application/xml; charset=ISO-8859-1"); include "classes/RSS.class.php"; $rss = new RSS(); echo $rss->GetFeed();
<description>' . $row['description'] . '</description> <language>' . $row['language'] . '</language> <pubDate>' . date(DATE_RSS) . '</pubDate>'; } return $channel; } private function getItems($conn) { $itemsTable = "rssItems"; $query = "SELECT * FROM " . $itemsTable . " ORDER BY `id` DESC LIMIT 31"; $result = $conn->prepare($query); $result->execute(); $items = ''; foreach ($result as $row) { $items .= '<item> <title>' . $row["title"] . '</title> <link>' . $row["link"] . '</link> <description><![CDATA[' . $row["description"] . ']]></description> </item>'; } $items .= '</channel> </rss>'; return $items; } } header("Content-Type: application/xml; charset=ISO-8859-1"); require_once 'includes/pdoconn.php'; $rss = new RSS(); echo $rss->GetFeed($pdoconn); ?>