





» Само сега - ако предплатите 5 месечни такси - получавате 1 безплатно. При предплащане на 10 месечни такси - получавате 2 безплатно.


$user="root";
$pass="";
$db="phn";
$broi_temi="6";
$broi_bukvi="38";
mysql_connect(localhost,$user,$pass);
mysql_select_db($db) or die( "Unable to select database");
$query="SELECT c.topic_time , c.topic_title,c.forum_id,c.topic_id, c.topic_replies,c.topic_type,f.forum_name FROM phpbb_topics c, phpbb_forums f WHERE c.forum_id=f.forum_id and f.auth_view like '0' ORDER BY c.topic_time ";
$result=mysql_query($query);
$num=mysql_num_rows($result);
mysql_close();
$ii=$num-$broi_temi;
for ($i=$num-1; $i>$ii;$i--)
{
$tema=mysql_result($result,$i,"c.topic_title");
$id=mysql_result($result,$i,"c.forum_id");
$topic_broi=mysql_result($result,$i,"c.topic_replies");
$topic_id=mysql_result($result,$i,"c.topic_id");
$topic=mysql_result($result,$i,"c.topic_type");
$cat=mysql_result($result,$i,"f.forum_name");
if (strlen($tema)>$broi_bukvi)
{$totchki='...';}
else
{$totchki='';}
$tema=substr($tema,0 , $broi_bukvi);
echo" » $cat: $tema$totchki ($topic_broi)
";
}
?>


No item elements found in rss feed.
