liste uzunluğuna göre ayrı listeler halinde mysql bir sonuç listesini bölünmüş

0 Cevap php

i php kullanarak çıktısı am mysql döndü satırların bir listesi var:

          echo '<ul class="mylist">';
    foreach ($rows as $row)
    {
        echo '<li><a href="'.$row->url.'" target="_blank">' . $row->title . '</a></li>';
    }
    echo  "</ul>";

works fine, but its a long list and i would like to split it into ul chunks so that i can make columns. maybe like 5 results per ul. instead of one ul...

i for deyiminde sarma çalıştı ama sonra sadece ayyy ... sonuçlar 5 kez çıktısı yara ...

0 Cevap