Vote count: 0
I have a data that loop from database to table. But I only need 1 column except if the row exceed the limit of my height it should be dynamically create another column or transfer the data to the other column and split my datas to that new column, is that possible?
echo'<table>';
for($res->result() as $rows){
echo'<tr>';
echo'<td>'.$rows-Name.'</td>';
echo'</tr>';
}
echo'</table>';
The output is this
Cynthia Abanes
Melde Feliciano
Chelsea MacKinnon
Christine Kostiuk
Erick
Vicky Maglinao
Norman Murehwa
Ronda
Elvira Rivera
Hiyasmin Gajudo
Mary Jane Reyes
Ronnie De Guzman
Annaliza Camino
Edwin Marino
Lucelle Caseres
Gayly Reniedo
Joseph Javier
Herminigildo Urbano
Herminigildo UrbanO
It should be like this
Cynthia Abanes Ronda Gayly Reniedo
Melde Feliciano Hiyasmin Gajudo Joseph Javier
Chelsea MacKinnon Mary Jane Reyes Herminigildo Urbano
Christine Kostiuk Ronnie De Guzman Herminigildo UrbanO
Erick Annaliza Camino
Vicky Maglinao Edwin Marino
Norman Murehwa Lucelle Caseres
asked 11 secs ago
How to split table column if row reach the maximum height
Aucun commentaire:
Enregistrer un commentaire