$title='ShiftCreate';
$link='http://www.shiftcreate.com/news/';
$where_str='';
if( $_GET['category'] ){
$where_str="AND category='".escape($_GET['category'])."'";
$title.=' | '.$_GET['category'];
$link.=$_GET['category'];
}
$news=sql_query("SELECT * FROM news
WHERE
display=1
$where_str
ORDER BY date DESC
");
header('Content-Type: text/xml');
print '';
print '';
print '';
print ''.$title.'';
print ''.$link.'';
print ''.$title.'';
foreach( $news as $k=>$v ){
print '-
'.$v['headline'].'
http://www.shiftcreate.com/news/'.$v['id'].'
';
}
print '';
print '';
exit;
?>