<?php
header('Content-Type: text/html; charset=utf-8');
$feeds = ('http://www.mma-bulgaria.com/novini.rss');
$xml = simplexml_load_file($feeds);
foreach($xml->channel->item as $item) {
mysql_query("INSERT INTO `news` (`id`, `title`, `description`, `link`, `pubdate`)
VALUES (
'',
'".mysql_real_escape_string($item->title)."',
'".mysql_real_escape_string($item->description=htmlspecialchars(trim($item->description)))."',
'".mysql_real_escape_string($item->link)."',
'".mysql_real_escape_string($item->pubdate)."')");
}