$rsstitle $rsslink $rssdescription nl-nl http://backend.userland.com/rss PHP/$phpversion $rsstitle $rsslink $rssurl 125 50 $rssdescription $pubDate END; // loop through the array pulling database fields for each item if ($items < mysql_num_rows($rsProducts)) { $itemsmax = $items; } else { $itemsmax = mysql_num_rows($rsProducts); } for ($i = 0; $i < $itemsmax; $i++) { if ($i != 0) { $row_rsProducts = mysql_fetch_array($rsProducts); } $title = cleanText($row_rsProducts["ProductName"]); if ($select == "new") { $link = "http://" . $www . "/news/#" . cleanText($row_rsProducts["ProductID"]); } else { $link = "http://" . $www . "/product/" . cleanText($row_rsProducts["ProductID"] . "/" . $select . "/" . $id . "/0/"); } $description = cleanText($row_rsProducts["ProductDesc"]); $guid = "http://" . $www . "/product/" . cleanText($row_rsProducts["ProductID"] . "/" . $select . "/" . $id . "/0/"); // display an item ECHO << $title $link $description $pubDate $guid END; } ECHO << END; ?>