Php Veritabanından Çektiğim Veriyi Döngüyle Çoğaltma

Bu konuyu okuyanlar

mali2012

Asistan
Katılım
10 Eylül 2012
Mesajlar
157
Reaksiyon puanı
9
Puanları
18
Arkadaşlar merhaba. Resimdeki gibi veritabanından veriyi çekiyorum. Ama döngüyle birden fazla veriyi nasıl çekebilirim, bilemedim. Eklediğim resimden bakabilirsiniz.
PHP:
<?php
    $resimalbumusorgusucek=$db->query("SELECT * FROM resimalbumu");
    $resimalbumucek  = $resimalbumusorgusucek->fetchAll(PDO::FETCH_ASSOC);
    foreach($resimalbumucek as $resimalbumu) {
    ?>
    
    <div style="position:relative; width:100%; height:450px; background:#cccccc; top:60px;">
    <div style="position:absolute; background:#81a8f4; width:100%; height:50px; line-height:50px;
            padding-left:10px; font-size:20px; color:#fff;">
    Albüm Listesi
    </div>
    
    <div style="width:100%; position:absolute; height:300px;
                                    background:; top:50px;">

    <div style="width:50%; height:35px; line-height:35px; position:absolute; height:35px;
            background:#fff; padding-left:10px; color:black; text-align:center;">
    Albüm Adı
    </div>
    
    <div style="width:35%; position:absolute; height:35px; line-height:35px; background:brown;
            margin-left:50%; padding-left:10px; color:#fff; text-align:center;">
    Albüm Sırası
    </div>
    
    <div style="width:15%; position:absolute; height:35px; line-height:35px; background:blue;
            margin-left:85%; padding-left:10px; color:#fff; text-align:center;">
    Düzenle - Sil
    </div>
    
    <div style="width:50%; position:absolute; height:35px; line-height:35px; background:#4b7096;
            top:35px; padding-left:10px; color:#fff; text-align:center;">
    <?php echo $resimalbumu['resimalbumu_adi']; ?>
    </div>
    
    <div style="width:35%; position:absolute; height:35px; line-height:35px;
                background:#acacac; margin-left:50%; top:35px; padding-left:10px; color:#fff;
                text-align:center;">
    <input type="text" name="" value="<?php echo $resimalbumu['resimalbumu_sirasi']; } ?>" style="width:50px; height:25px; color:#000; text-align:center;" />
    </div>   
    
    <div style="width:15%; position:absolute; height:35px; line-height:35px;
                background:#c123cc; margin-left:85%; top:35px; padding-left:10px; color:#fff;
                text-align:center;">
    <img src="../../../upload/icons/edit.png" title="Düzenle" />
    <img src="../../../upload/icons/delete.png" style="padding-left:25px;" title="Sil"/>
    </div>
    
    </div>
 

Ekli dosyalar

  • adsız 1.jpg
    adsız 1.jpg
    13.4 KB · Görüntüleme: 89

mali2012

Asistan
Katılım
10 Eylül 2012
Mesajlar
157
Reaksiyon puanı
9
Puanları
18
Bu alanı nasıl devam ettirebilirim döngüyle. Resme bakabilir misiniz?
Mesaj otomatik birleştirildi:

Arkadaşlar benim koyduğum bu kodlarda bir sıkıntı yok. Yalnız tek veri çekiyor Yani tek satır veri çekiyor.
 

Ekli dosyalar

  • adsız 1 - Kopya.jpg
    adsız 1 - Kopya.jpg
    24.9 KB · Görüntüleme: 91
Son düzenleme:

Son mesajlar

Üst