<?
include ("../functions.php");
include ("../f_secure.php");
include ("../config.php");
$limit = 50;
header('Content-type: text/xml'); 

?>

<rss version="2.0">
<channel>
<title>Flat World Software Development</title>
<description>Community Reviews of Offshore Development Providers and Outsource Online Marketplace</description>
<link>http://www.flatworldsoftwaredevelopment.com/review/</link>

<?
$sql = "select * from review_items WHERE item_name != '' order by item_id limit $limit"; 

    $result = mysql_query($sql) 
or die(sprintf("Couldn't execute query, %s: %s", db_errno(), db_error()));
//$query = mysql_query($sql) or die(mysql_error()); 
while($row = mysql_fetch_array($result)) { 
$title = $row["item_name"]; 
$desc = $row["item_desc"];
$item_id = $row["item_id"]; 
$category = $row["category"]; 


//$pubDate = date(d, m, y h:s:s);
//Wed, 02 Oct 2002 13:00:00 GMT
  // output to browser
?>
	
  <item>
  <title><? print htmlentities($title,ENT_QUOTES); ?></title>
  <description><? print htmlentities($desc,ENT_QUOTES); ?></description>
<category><? print htmlentities($category,ENT_QUOTES); ?></category>
  <link><? print htmlentities($url,ENT_QUOTES); ?><? print htmlentities($directory,ENT_QUOTES); ?>/index2.php?item_id=<? print $item_id;  ?></link> 
  </item>

<? 
  } 
?>

</channel>
</rss>
