wmaraci reklam

php scriptindeki tabloyu küçük bir düzen gerekiyor

3 Mesajlar 498 Okunma
wmaraci reklam

EPINKO EPINKO epinko.com Kullanıcı
  • Üyelik 04.11.2013
  • Yaş/Cinsiyet 33 / E
  • Meslek öğrenci
  • Konum Mersin
  • Ad Soyad O** T**
  • Mesajlar 1304
  • Beğeniler 204 / 205
  • Ticaret 23, (%100)
Merhaba arkadaşlar

bu scriptideki Metin2 PvP Serverlar tablosunda 25 tane konu göstermesini istiyorum ama bunu order by oy desc limit ile yapıyorum sayiyi değiştiriyorum olmuyor yapabilecek arkadaş var ise çok sevinirim mesela 20 tane tek göstersin istiyorum ne yazsam olmadı yardımlarinizi bekliyorum sağolun

O Tabloya ait tum kodlar burada






















Metin2 PvP Serverlar











//RepHole
$i = 0;
$sorgu = mysql_query("select * from sunucu where onay='1' and tip='metin2' and vipbir='1' and durum='Server Açık' order by RAND()") ;
$totalvipbir = mysql_num_rows($sorgu);
?>








if ( $satir['zorluk'] == "Kolay") $zorrenk = "#0C0";
if ( $satir['zorluk'] == "Orta") $zorrenk = "#F90";
if ( $satir['zorluk'] == "Zor") $zorrenk = "#F00";
if ( $satir['zorluk'] == "PK") $zorrenk = "#90F";
if ( $satir['zorluk'] == "Ardream") $zorrenk = "#09F";
if ( $satir['zorluk'] == "Mage") $zorrenk = "#F90";

?>



//RepHole
$sorgu = mysql_query("select * from sunucu where onay='1' and tip='metin2' and best='1' and durum='Server Açık' order by RAND()") ;
$totalbest = mysql_num_rows($sorgu);
?>








if ( $satir['zorluk'] == "Kolay") $zorrenk = "#0C0";
if ( $satir['zorluk'] == "Orta") $zorrenk = "#F90";
if ( $satir['zorluk'] == "Zor") $zorrenk = "#F00";
if ( $satir['zorluk'] == "PK") $zorrenk = "#90F";
if ( $satir['zorluk'] == "Ardream") $zorrenk = "#09F";
if ( $satir['zorluk'] == "Mage") $zorrenk = "#F90";

?>



$sorgu = mysql_query("select * from sunucu where onay='1' and tip='metin2' and vip='1' and best='0' and durum='Server Açık' order by RAND()") ;
$totalvip = mysql_num_rows($sorgu);
?>







if ( $satir['zorluk'] == "Kolay") $zorrenk = "#0C0";
if ( $satir['zorluk'] == "Orta") $zorrenk = "#F90";
if ( $satir['zorluk'] == "Zor") $zorrenk = "#F00";
if ( $satir['zorluk'] == "PK") $zorrenk = "#90F";
if ( $satir['zorluk'] == "Ardream") $zorrenk = "#09F";
if ( $satir['zorluk'] == "Mage") $zorrenk = "#F90";

?>



$sorgu = mysql_query("select * from sunucu where onay='1' and tip='metin2' and vip='0' and best='0' and vipbir='0' and durum='Server Açık' 0,20".(44-$totalbest-$totalvip-$totalvipbir)) ;?>








if ( $satir['zorluk'] == "Kolay") $zorrenk = "#0C0";
if ( $satir['zorluk'] == "Orta") $zorrenk = "#F90";
if ( $satir['zorluk'] == "Zor") $zorrenk = "#F00";
if ( $satir['zorluk'] == "PK") $zorrenk = "#90F";
if ( $satir['zorluk'] == "Ardream") $zorrenk = "#09F";
if ( $satir['zorluk'] == "Mage") $zorrenk = "#F90";

?>











No Tip Server adı Durum Zorluk
.
.
PROFESYONEL
vip
vip
vip
.
No Tip Server adı Durum Zorluk


 

 

[url=https://www.hizliresim.com/8gm823r][img]https://i.hizliresim.com/8gm823r.gif[/img][/url]
wmaraci
reklam

Jason Jason WM Aracı Kullanıcı
  • Üyelik 30.05.2013
  • Yaş/Cinsiyet 34 / E
  • Meslek Yazılım Geliştirici
  • Konum İzmir
  • Ad Soyad E** Y**
  • Mesajlar 47
  • Beğeniler 11 / 13
  • Ticaret 1, (%100)
Merhaba; veritabanı sorgularındaki order by RAND() ifadesini order by oy desc limit 25 olarak değiştirdim umarım sorun çözülür, iyi çalışmalar.























Metin2 PvP Serverlar











//RepHole
$i = 0;
$sorgu = mysql_query("select * from sunucu where onay='1' and tip='metin2' and vipbir='1' and durum='Server Açık' limit 25") ;
$totalvipbir = mysql_num_rows($sorgu);
?>








if ( $satir['zorluk'] == "Kolay") $zorrenk = "#0C0";
if ( $satir['zorluk'] == "Orta") $zorrenk = "#F90";
if ( $satir['zorluk'] == "Zor") $zorrenk = "#F00";
if ( $satir['zorluk'] == "PK") $zorrenk = "#90F";
if ( $satir['zorluk'] == "Ardream") $zorrenk = "#09F";
if ( $satir['zorluk'] == "Mage") $zorrenk = "#F90";

?>



//RepHole
$sorgu = mysql_query("select * from sunucu where onay='1' and tip='metin2' and best='1' and durum='Server Açık' limit 25") ;
$totalbest = mysql_num_rows($sorgu);
?>








if ( $satir['zorluk'] == "Kolay") $zorrenk = "#0C0";
if ( $satir['zorluk'] == "Orta") $zorrenk = "#F90";
if ( $satir['zorluk'] == "Zor") $zorrenk = "#F00";
if ( $satir['zorluk'] == "PK") $zorrenk = "#90F";
if ( $satir['zorluk'] == "Ardream") $zorrenk = "#09F";
if ( $satir['zorluk'] == "Mage") $zorrenk = "#F90";

?>



$sorgu = mysql_query("select * from sunucu where onay='1' and tip='metin2' and vip='1' and best='0' and durum='Server Açık' limit 25") ;
$totalvip = mysql_num_rows($sorgu);
?>







if ( $satir['zorluk'] == "Kolay") $zorrenk = "#0C0";
if ( $satir['zorluk'] == "Orta") $zorrenk = "#F90";
if ( $satir['zorluk'] == "Zor") $zorrenk = "#F00";
if ( $satir['zorluk'] == "PK") $zorrenk = "#90F";
if ( $satir['zorluk'] == "Ardream") $zorrenk = "#09F";
if ( $satir['zorluk'] == "Mage") $zorrenk = "#F90";

?>



$sorgu = mysql_query("select * from sunucu where onay='1' and tip='metin2' and vip='0' and best='0' and vipbir='0' and durum='Server Açık' limit 0,20".(44-$totalbest-$totalvip-$totalvipbir)) ;?>








if ( $satir['zorluk'] == "Kolay") $zorrenk = "#0C0";
if ( $satir['zorluk'] == "Orta") $zorrenk = "#F90";
if ( $satir['zorluk'] == "Zor") $zorrenk = "#F00";
if ( $satir['zorluk'] == "PK") $zorrenk = "#90F";
if ( $satir['zorluk'] == "Ardream") $zorrenk = "#09F";
if ( $satir['zorluk'] == "Mage") $zorrenk = "#F90";

?>











No Tip Server adı Durum Zorluk
.
.
PROFESYONEL
vip
vip
vip
.
No Tip Server adı Durum Zorluk



 

 

EPINKO EPINKO epinko.com Kullanıcı
  • Üyelik 04.11.2013
  • Yaş/Cinsiyet 33 / E
  • Meslek öğrenci
  • Konum Mersin
  • Ad Soyad O** T**
  • Mesajlar 1304
  • Beğeniler 204 / 205
  • Ticaret 23, (%100)

Jason adlı üyeden alıntı

Merhaba; veritabanı sorgularındaki order by RAND() ifadesini order by oy desc limit 25 olarak değiştirdim umarım sorun çözülür, iyi çalışmalar.


yardimin için teşekkür ederim ama malesef olmadı tablodaki konulari göstermiyor o kodu yazarsam.
 

 

[url=https://www.hizliresim.com/8gm823r][img]https://i.hizliresim.com/8gm823r.gif[/img][/url]
wmaraci
Konuyu toplam 1 kişi okuyor. (0 kullanıcı ve 1 misafir)