Webmaster Forumu

Geri git   Webmaster Forumu > Webmaster Kaynak Eğitim Tanıtım Hizmet > İnternet Programlama ve Kodlama > PHP

PHP PHP & PHP Hızlandırıcılar

Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)   iTrader 
Alt 2007-01-17, 20:20
raptor - ait Kullanıcı Resmi (Avatar)
Member
 
Üyelik tarihi: Oct 2006
Mesajlar: 474
Tecrübe Puanı: 2
iTrader: %100/6
raptor is an unknown quantity at this point
Standart sıralamada sorun..

merhaba db den 9 tane veri çekip bunları sıralamak istedim ama yapamadım verileri çekiyorum ama alt alta sıralanıyor bunları nasıl yan yana yapabilirim bir sıralamada 3 tane olacak diğerleri alta inecek. resimi altta verdim yardımcı olurmusunuz.
Benim yaptığım bu şekil


her sırada 3 olacak şekilde toplam 9 tane sıralamak istiyorum.

PHP- Kodu:
<?
    
//popüler dosyalar
    
$result mysql_query("SELECT title, fileid, icon, description, timesplayed FROM files WHERE status = '1' ORDER BY timesplayed DESC LIMIT 9");
    if (
mysql_num_rows ($result)) {
     
     while (
$row mysql_fetch_array($result)) {
      
$pvideotitle    $row['title'];
      
$pvideoid       $row['fileid'];
      
$pvideoresim    $row['icon'];
      
$pvideoaciklama $row['description'];
       if (
strlen($pvideoaciklama) > '80') {
            
$pvideoaciklama substr("$pvideoaciklama",0,70)."...";
        }
      
$pvideoizlenme  number_format($row['timesplayed']);
      
?>

teşekkürler..

Konu raptor tarafından (2007-01-17 Saat 21:26 ) değiştirilmiştir..
Alıntı ile Cevapla

  #2 (permalink)   iTrader 
Alt 2007-01-17, 20:34
Gold Member
 
Üyelik tarihi: Aug 2006
Mesajlar: 1.225
Tecrübe Puanı: 3
iTrader: %71/3
Hostmaster is on a distinguished road
Standart

Sorduğunun CSS'le ilgili olması lazım
__________________
Web Hosting Hikaye
Alıntı ile Cevapla

  #3 (permalink)   iTrader 
Alt 2007-01-17, 20:38
ploop - ait Kullanıcı Resmi (Avatar)
Moderator
 
Üyelik tarihi: Oct 2004
Nerden: karavan
Mesajlar: 5.375
Tecrübe Puanı: 9
iTrader: %100/12
ploop is a jewel in the roughploop is a jewel in the roughploop is a jewel in the roughploop is a jewel in the rough
Standart

o değil de, anlamadığım neden kacpopuler değiskeni tanımlamaya gerek duydun bu 2 satırda:
Alıntı:
$kacpopuler = 9;
$result = mysql_query("SELECT title, fileid, icon, description, timesplayed FROM files WHERE status = '1' ORDER BY timesplayed DESC LIMIT $kacpopuler");
__________________
karavan alıp gezesim var..
Alıntı ile Cevapla

  #4 (permalink)   iTrader 
Alt 2007-01-17, 20:41
raptor - ait Kullanıcı Resmi (Avatar)
Member
 
Üyelik tarihi: Oct 2006
Mesajlar: 474
Tecrübe Puanı: 2
iTrader: %100/6
raptor is an unknown quantity at this point
Standart

Alıntı:
ploop´isimli üyeden Alıntı Mesajı göster
o değil de, anlamadığım neden kacpopuler değiskeni tanımlamaya gerek duydun bu 2 satırda:
tanımlasan veya tanımlamasan bir farkı varmı ?
Alıntı ile Cevapla

  #5 (permalink)   iTrader 
Alt 2007-01-17, 20:51
ploop - ait Kullanıcı Resmi (Avatar)
Moderator
 
Üyelik tarihi: Oct 2004
Nerden: karavan
Mesajlar: 5.375
Tecrübe Puanı: 9
iTrader: %100/12
ploop is a jewel in the roughploop is a jewel in the roughploop is a jewel in the roughploop is a jewel in the rough
Standart

bilmiyorum iste php'yi o yüzden sordum. yani onun yerine asagıdaki gibi yazsan bosuna yormamıs olmaz mıydın:
Alıntı:
$result = mysql_query("SELECT title, fileid, icon, description, timesplayed FROM files WHERE status = '1' ORDER BY timesplayed DESC LIMIT 9");
__________________
karavan alıp gezesim var..
Alıntı ile Cevapla

  #6 (permalink)   iTrader 
Alt 2007-01-17, 20:55
raptor - ait Kullanıcı Resmi (Avatar)
Member
 
Üyelik tarihi: Oct 2006
Mesajlar: 474
Tecrübe Puanı: 2
iTrader: %100/6
raptor is an unknown quantity at this point
Standart

Alıntı:
ploop´isimli üyeden Alıntı Mesajı göster
bilmiyorum iste php'yi o yüzden sordum. yani onun yerine asagıdaki gibi yazsan bosuna yormamıs olmaz mıydın:
tamam bunu değiştirdim daha yeni öğreniyorum.Ama hala sıralamayı yapamadım yardımcı olacak yokmu..
Alıntı ile Cevapla

  #7 (permalink)   iTrader 
Alt 2007-01-17, 21:28
Caesar - ait Kullanıcı Resmi (Avatar)
Platinum Member
 
Üyelik tarihi: Jun 2006
Nerden: /dev/null
Mesajlar: 2.576
Tecrübe Puanı: 0
iTrader: %100/6
Caesar will become famous soon enoughCaesar will become famous soon enough
Standart

verdiğin php kodlarında echolayan bir değer göremiyorum ?
Alıntı ile Cevapla

  #8 (permalink)   iTrader 
Alt 2007-01-17, 21:39
raptor - ait Kullanıcı Resmi (Avatar)
Member
 
Üyelik tarihi: Oct 2006
Mesajlar: 474
Tecrübe Puanı: 2
iTrader: %100/6
raptor is an unknown quantity at this point
Standart

alt kısmını unutmuşum kusura bakmayın..

PHP- Kodu:
//popüler dosyalar
    $result = mysql_query("SELECT title, fileid, icon, description, timesplayed FROM files WHERE status = '1' ORDER BY timesplayed DESC LIMIT 9");
    if (mysql_num_rows ($result)) {
     
     while ($row = mysql_fetch_array($result)) {
      $pvideotitle    = $row['title'];
      $pvideoid       = $row['fileid'];
      $pvideoresim    = $row['icon'];
      $pvideoaciklama = $row['description'];
       if (strlen($pvideoaciklama) > '80') {
            $pvideoaciklama = substr("$pvideoaciklama",0,70)."...";
        }
      $pvideoizlenme  = number_format($row['timesplayed']);
      ?>
      <td width="33%" valign="top">
      <table class="browsegamesbox">
        <tr>
          <td width="71">
          <a href="<?php echo fileurl($pvideoid,$pvideotitle); ?>" target="_self"><img src="<?php echo $pvideoresim?>" width="90" height="80" title="<?php echo $pvideotitle?>" alt="<?php echo $pvideotitle?>" border="0"></a>
          </td>
          <td valign="top">
          <a href="<?php echo fileurl($pvideoid,$pvideotitle); ?>" target="_self" class="gamelink"><?php echo $pvideotitle?></a><br/>
          <?php echo $pvideoaciklama?><br />
          <span class="played">(İzlenme: <?php echo $pvideoizlenme?> kez)</span>
          </td>
        </tr>
      </table>
    </td>
still
PHP- Kodu:
.browsegamesbox {
    
background#EBE8E8;
    
font-familyArial;
    
font-size11px;
    
color#333333;
    
text-alignleft;
    
padding3px;
    
width100%; 
PHP- Kodu:
.gamelink {
    
color#336699;
    
font-weightbold;
    
text-decorationnone
PHP- Kodu:
.top {
    
padding0px;
    
text-aligncenter;
    
background-image :url(images/arkaplan.jpeg);
    
height:0px
Alıntı ile Cevapla

  #9 (permalink)   iTrader 
Alt 2007-01-17, 22:53
Caesar - ait Kullanıcı Resmi (Avatar)
Platinum Member
 
Üyelik tarihi: Jun 2006
Nerden: /dev/null
Mesajlar: 2.576
Tecrübe Puanı: 0
iTrader: %100/6
Caesar will become famous soon enoughCaesar will become famous soon enough
Standart

PHP- Kodu:
<td width="33%" valign="top">
      <table class="browsegamesbox">
<?
//popüler dosyalar
    
$result mysql_query("SELECT title, fileid, icon, description, timesplayed FROM files WHERE status = '1' ORDER BY timesplayed DESC LIMIT 9");
    if (
mysql_num_rows ($result)) {
     
$say=0;
     while (
$row mysql_fetch_array($result)) {
     
$say++;
      
$pvideotitle    $row['title'];
      
$pvideoid       $row['fileid'];
      
$pvideoresim    $row['icon'];
      
$pvideoaciklama $row['description'];
       if (
strlen($pvideoaciklama) > '80') {
            
$pvideoaciklama substr("$pvideoaciklama",0,70)."...";
        }
      
$pvideoizlenme  number_format($row['timesplayed']);
      if (
$say%2==1) {
      
?>
        <tr>
          <td width="71">
          <a href="<?php echo fileurl($pvideoid,$pvideotitle); ?>" target="_self"><img src="<?php echo $pvideoresim?>" width="90" height="80" title="<?php echo $pvideotitle?>" alt="<?php echo $pvideotitle?>" border="0"></a>
          </td>
          <td valign="top">
          <a href="<?php echo fileurl($pvideoid,$pvideotitle); ?>" target="_self" class="gamelink"><?php echo $pvideotitle?></a><br/>
          <?php echo $pvideoaciklama?><br />
          <span class="played">(İzlenme: <?php echo $pvideoizlenme?> kez)</span>
          </td>
       <?
       
} else {
       
?>
          <td width="71">
          <a href="<?php echo fileurl($pvideoid,$pvideotitle); ?>" target="_self"><img src="<?php echo $pvideoresim?>" width="90" height="80" title="<?php echo $pvideotitle?>" alt="<?php echo $pvideotitle?>" border="0"></a>
          </td>
          <td valign="top">
          <a href="<?php echo fileurl($pvideoid,$pvideotitle); ?>" target="_self" class="gamelink"><?php echo $pvideotitle?></a><br/>
          <?php echo $pvideoaciklama?><br />
          <span class="played">(İzlenme: <?php echo $pvideoizlenme?> kez)</span>
          </td>
       </tr>
       <?
       
}
       
?>
     </table>
    </td>
Alıntı ile Cevapla

  #10 (permalink)   iTrader 
Alt 2007-01-17, 23:20
raptor - ait Kullanıcı Resmi (Avatar)
Member
 
Üyelik tarihi: Oct 2006
Mesajlar: 474
Tecrübe Puanı: 2
iTrader: %100/6
raptor is an unknown quantity at this point
Standart

sağolasın caesar emeğine sağlık ama olmadı veya ben yapamadım 3. videodan sonra alta geçmiyor, bu sefer videolar sayfaya dağılmış durumda.
Alıntı ile Cevapla

Cevapla

Seçenekler
Stil


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Indexlemede Sorun yok fakat Google'da cikmada sorun var. hengame Google Optimizasyon 6 2006-06-29 23:11
IIS sorun Bulutlar İşletim sistemi 1 2006-03-06 16:19
sorun disconnect Google Adsense 5 2005-11-03 11:22
IIS de sorun ! burakmert Webmaster Genel Konular 2 2005-05-26 11:08


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 03:59 .


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

Firefox