<?php
include("ayar.php");
?>


<?php
if($_GET['sayfa'])
{
$sayfa = $_GET['sayfa'];
}
else
{
$sayfa = 1;
}

function strtolowerTR($text) {
$TRBul=array('Ğ','Ü','Ş','İ','Ö','Ç','ğ','ü','ş','ı','ö','ç'
);
$TRDegistir=array('g','u','s','i','o','c','g','u','s','i','o','c'
);
$text=str_replace($TRBul,$TRDegistir,$text
);
$text=strtolower($text
);
return
$text
;
}

$max = 50;
$cur = (($sayfa * $max) - $max);
$counttotal = mysql_query("SELECT kelime FROM arananlar ") or die(mysql_error());
$counttotal = mysql_num_rows($counttotal);
$total_pages = ceil($counttotal / $max);
$sonuc = mysql_query("Select kelime From arananlar order by zaman DESC LIMIT $cur,$max");
while($satir = mysql_fetch_array($sonuc)){
$kelime = $satir['kelime'];
echo $a."- <a title=\"".$kelime."\" href=\"<A href="http://www.benbildim.com/?pg=youtube&video=" .$kelime."\">".$kelime."</a><br">http://www.benbil dim.com/?pg=youtube&video=".$kelime."\">".$kelime. "</a><br>";
}
if ( $total_pages > 1)
{
echo "Sayfalar:";
for($i = 1; $i <= $total_pages; $i++)
{
if($page == $i) //
{
echo'<b>' . $i .'</b> ';
}
else
{
echo '<a href="?pg=tag&sayfa=' . $i . '">' . $i . '</a> ';
}


} ?>


yinede olmadı