title: how to store rss in mysql with Magpie in php
body: <p>I need to fetch rss feeds from 12 different websites.
  and i want only selected feeds will be display to user on main page. I am using Magpie RSS parser to display RSS feeds. But how i can store them in database. I used following code to fetch feeds.</p>
  
  <pre><code>&lt;?php
  include('magpierss/rss_fetch.inc');
  define('MAGPIE_CACHE_DIR', '/var/cache');
  $rss = fetch_rss(' here is url link');
  $items = array_slice($rss-&gt;items, 0, 10);
  
  foreach ($items as $item) {
      $href = $item['link'];
      $title = $item['title'];
      $desc = $item['description'];
      echo "&lt;p&gt;&lt;a href='$href'&gt;$title&lt;/a&gt;&lt;br&gt;";
      if ($desc) {
          if (strlen($desc) &gt;= 125) {
              $desc = substr($desc, 0, 124) . "...";
          }
      }
      echo $desc;
  }
  ;
  ?&gt;
  </code></pre>
  
  <p>now how i can store it to database.</p>