» Kategorisinde Bulunan Firmalar |
$katt=mysql_query("select * from firmalar where kategori='$kat'");
$liste=mysql_fetch_array($katt);
$deg = $liste[firma];
if($deg) {
echo $kat;
function sayfala(){
$sayfa=mysql_query("select * from kategoriler where url='$_GET[url]'");
$yaz=mysql_fetch_array($sayfa);
$kat = $yaz[adi];
$katne = $yaz[adi];
$x = mysql_query("SELECT * FROM firmalar where kategori='$kat' and durum='Aktif'");
$say = mysql_num_rows($x) ;
if($say == 0) { echo "Kayıt Bulunamadı"; }
$ss = ceil($say / 10);
if($_GET["s"]=="") { $_GET["s"] =1; }
if($ss!=1) {
echo "Diğer Sayfalar: ";
for($i=1; $i <= $ss; $i++) {
if ($_GET["s"] == $i) {
echo ' '.$i.' ';
} else {
echo ' '.$i.' ';
}
}
}
}
if ( isset($_REQUEST["s"]) ) {
$s = $_REQUEST["s"];
$b = ($s * 10 ) - 10;
} else {
$b = 0;
}
$kayitlar=mysql_query("SELECT * FROM firmalar where kategori='$kat' and durum='Aktif' order by id desc limit $b, 10");
while($lis=mysql_fetch_array($kayitlar)) {
$sefurl = str_replace('A','a',$lis[firma]);
$sefurl = str_replace('B','b',$sefurl);
$sefurl = str_replace('C','c',$sefurl);
$sefurl = str_replace('Ç','c',$sefurl);
$sefurl = str_replace('D','d',$sefurl);
$sefurl = str_replace('E','e',$sefurl);
$sefurl = str_replace('F','f',$sefurl);
$sefurl = str_replace('G','g',$sefurl);
$sefurl = str_replace('Ğ','g',$sefurl);
$sefurl = str_replace('H','h',$sefurl);
$sefurl = str_replace('I','i',$sefurl);
$sefurl = str_replace('İ','i',$sefurl);
$sefurl = str_replace('J','j',$sefurl);
$sefurl = str_replace('K','k',$sefurl);
$sefurl = str_replace('L','l',$sefurl);
$sefurl = str_replace('M','m',$sefurl);
$sefurl = str_replace('N','n',$sefurl);
$sefurl = str_replace('O','o',$sefurl);
$sefurl = str_replace('Ö','o',$sefurl);
$sefurl = str_replace('P','p',$sefurl);
$sefurl = str_replace('R','r',$sefurl);
$sefurl = str_replace('S','s',$sefurl);
$sefurl = str_replace('Ş','s',$sefurl);
$sefurl = str_replace('T','t',$sefurl);
$sefurl = str_replace('U','u',$sefurl);
$sefurl = str_replace('Ü','u',$sefurl);
$sefurl = str_replace('V','v',$sefurl);
$sefurl = str_replace('Y','y',$sefurl);
$sefurl = str_replace('Z','z',$sefurl);
$sefurl = str_replace('W','w',$sefurl);
$sefurl = str_replace('Q','q',$sefurl);
$sefurl = str_replace('X','x',$sefurl);
/* Türkçe Karakterleri Çeviriyoruz */
$sefurl = str_replace('ö','o',$sefurl);
$sefurl = str_replace('ü','u',$sefurl);
$sefurl = str_replace('ç','c',$sefurl);
$sefurl = str_replace('ı','i',$sefurl);
$sefurl = str_replace('ğ','g',$sefurl);
$sefurl = str_replace('ş','s',$sefurl);
/* Nokta, Virgül, Boşluk ve Çift Boşlukları tire Yapıyoruz */
$sefurl = str_replace(' ','-',$sefurl);
$sefurl = str_replace(' ','-',$sefurl);
$sefurl = str_replace(' ','-',$sefurl);
$sefurl = str_replace(' ','-',$sefurl);
$sefurl = str_replace('.','-',$sefurl);
$sefurl = str_replace(',','-',$sefurl);
$sefurl = str_replace(':','-',$sefurl);
$sefurl = str_replace(';','-',$sefurl);
$sefurl = str_replace('?','-',$sefurl);
$sefurl = str_replace('/','-',$sefurl);
$sefurl = str_replace('*','-',$sefurl);
$sefurl = str_replace('=','-',$sefurl);
$sefurl = str_replace('<','-',$sefurl);
$sefurl = str_replace('>','-',$sefurl);
$sefurl = str_replace('\'','-',$sefurl);
$sefurl = str_replace('!','-',$sefurl);
$sefurl = str_replace('$','-',$sefurl);
$sefurl = str_replace('%','-',$sefurl);
$sefurl = str_replace('&','-',$sefurl);
$sefurl = str_replace('{','-',$sefurl);
$sefurl = str_replace('}','-',$sefurl);
$sefurl = str_replace('(','-',$sefurl);
$sefurl = str_replace(')','-',$sefurl);
$sefurl = str_replace(']','-',$sefurl);
$ilur = str_replace('[','-',$sefurl);
$baslik = $lis[firma];
$uzunluk = strlen($baslik);
$harf = 30;
if ($uzunluk > $harf) {$baslik = substr($baslik,0,$harf) . "..";
}
$ozetii = $lis[aciklama]; $uzunlukk = strlen($lis[aciklama]);
if ($uzunlukk > 70) {$ozetii = substr($ozetii,0,150) . ".."; }
?>
if ($lis[logo]) { ?>
}else{ ?>
} ?>
Şehir :
} ?>
|
| | | | | |