header('Content-Type: text/html;charset=windows-1251'); $mas=file("db.txt"); $id=$_GET['q']; $t=explode("_",$id); $id=$t[0]; unset($t); if ($id>=count($mas)) { header("HTTP/1.1 404 Not Found"); exit(); } $k1=explode(" ----- --- ",$mas[$id]); $keyword_t=explode("|||",$k1[0]); $keyword=$keyword_t[0]; //$keyword=$k1[0]; $r1=explode("---",$k1[1]); // echo "
 
	
 
  
 for ($i=0;$i<=count($r1);$i=$i+3)
    {
    echo '"."
".trim($r1[$i+2]).""."".substr($r1[$i],0,80)."
";
     }
  $num_link=10;
//  for ($x=$id;$x<=$id+$num_link;$x++)
?>