[eluser]gtech[/eluser]
sure there is a nicer way but this view works
Code:
<?php
$counter=0;
$cols=3;
$list = array('0','2','1','2','9','0','1','2','9','2','1','2','9','0');
?>
<table border=1>
<?php foreach($list as $val):?>
<?php if($counter==$cols) {$counter=0;}?>
<?php if($counter==0):?><tr><?php endif;?>
<td><?=$val?></td>
<?php if($counter==($cols-1)):?>
</tr>
<?php endif;?>
<?php $counter ++;?>
<?php endforeach?>
<?php for ( $i = 0; $i <= (($cols-1)-$counter); $i ++):?>
<td>-</td>
<?php endfor?>
<?php if($counter!=$cols):?>
</tr>
<?php endif;?>
</table>