• 12-09-2007, 05:07:54
    #1
    Eposta Aktivasyonu Gerekmekte



    Yukarıdaki table yapısı şeklinde listeleme yapmak istiyorum ama beceremedim.daha iyi anlamanız için bunu şu şekilde yapmaya çalıştım:
    <table width="390">
      <tr><? 
    $sql = "Select  * from video order by tarih desc limit 0,3";
    $q=mysql_query($sql);
    while ($r=mysql_fetch_array($q)){
    $link = trsil($r[adi]) ; ?>
     <td height="140" width="130" valign="bottom" background="<?=$r[resim]?>"><img src="img/resim1.png" /><table width="130" height="20" background="img/resim2.png"><tr><td width="130" height="20" align="center" class="isim"> 
    <?=$r[adi]?></td></tr></table></td>
     <? } ?></tr></table>
    <table width="390">
      <tr><? 
    $sql = "Select  * from video order by tarih desc limit 3,6";
    $q=mysql_query($sql);
    while ($r=mysql_fetch_array($q)){
    $link = trsil($r[adi]) ; ?>
     <td height="140" width="130" valign="bottom" background="<?=$r[resim]?>"><img src="img/resim1.png" /><table width="130" height="20" background="img/resim2.png"><tr><td width="130" height="20" align="center" class="isim"> 
    <?=$r[adi]?></td></tr></table></td>
     <? } ?></tr></table>
    bunu bir table yapısı oluşturarak nasıl yapabilirim.Umarım anlatmak istediğimi anlatabilmişimdir.
    Allah yardım edenlerden razı olsun etmeyenlerdende olsun ama edenlerden daha fazla
  • 12-09-2007, 12:18:11
    #2
    <table width="390">
    <tr>
    <?php
    $sonuc = mysql_query("Select * From video Order By tarih DESC");
    while($satir = mysql_fetch_array($sonuc)){
    $link = trsil($satir[adi]) ;
    $adi = $satir['adi'];
    $resim = $satir['resim'];
    ?>
    <td height="140" width="130" valign="bottom" background="<?php echo $resim; ?>"><img src="img/resim1.png" />
    <table width="130" height="20" background="img/resim2.png">
    <tr>
    <td width="130" height="20" align="center" class="isim"> 
    <?php echo $adi; ?></td>
    </tr>
    </table>
    </td>
    <?php
    	$listele++;
    	if($listele ==3){
    	echo "</tr><tr>";
    	$listele=0;
    	}
    }
    ?>
    </table>
  • 12-09-2007, 16:12:56
    #3
    Eposta Aktivasyonu Gerekmekte
    Teşekkür ederim..