"; ?> "; ?> "; ?> " /> " /> " /> " /> " /> "/> "/> "/>
<? echo - Начало" title=' - Начало' border="0">
 
Новини и публикации за $alf "; ?> ( Търсене с Google за $alf )
"; include '/home/eplovdiv/www/www/reklamen-panel.php'; $fp=fopen("alftxt.txt","r"); $brp=fread($fp,filesize("alftxt.txt")); fclose($fp); $n=(int)$_GET['n']; if(!$n)$n=0; $p=(int)$_GET['p']; if(!$p)$p=1; mysql_connect("localhost:/tmp/mysql5.sock","resu321","rabota") or die("No connection!"); mysql_select_db("eplovdiv_news_bg"); mysql_query("SET NAMES 'cp1251'")or die("No setting names!"); $res=mysql_query("select * from imoti where zagl like '%$alf%' or opisan like '%$alf%' order by id desc"); $num=mysql_num_rows($res); $res=mysql_query("select * from imoti where zagl like '%$alf%' or opisan like '%$alf%' order by id desc limit $n,$brp"); $numreal=mysql_num_rows($res); mysql_close(); for($a=0; $a<$numreal; $a++) { $prid=mysql_result($res,$a,"id"); $prime=mysql_result($res,$a,"zagl"); $prpict=mysql_result($res,$a,"pic"); $mqsto=mysql_result($res,$a,"mqsto"); $date=mysql_result($res,$a,"date"); $top=mysql_result($res,$a,"top"); if($prpict) { $pics=explode(",",$prpict); $m=0; echo " "; } else echo" "; echo" "; echo "
$mqsto





"; } $m=0; $pages=$num/$brp; for($b=0; $b<$pages; $b++) { $pn=$b+1; if($pn!=$p)echo"$pn";else echo"($pn)"; if($pn<$pages)echo" - "; $m+=$brp; } ?>