<?php
 include("header.php");
 echo '<div class="mainList">';
 if(empty($id)) 
   $id=1;
 $res = mysqli_query($msql, "SELECT * FROM news_groups WHERE id=$id") or die("ERROR ".__LINE__.":".mysqli_error($msql));
 $ar = mysqli_fetch_array($res);
 $page_titlek = "$ar[name] News";

 $resb = mysqli_query("SELECT * FROM news_rss WHERE category=" . mysqli_real_escape_string($msql, $id)." ORDER BY id DESC LIMIT 20");
 while($arb = mysql_fetchi_array($resb))
 {
  $arb[description] = eregi_replace("&#60;","<",$arb['description']);
  echo '<h2 style="clear:both;">'.$arb['headline'].'</h2>';
  echo '<p>'.strip_tags($arb['description'],"<b><p><i><u><br>").'</p>';
 }
echo '</div>'  #end #mainList
include("footer.php");
