Forum Moderators: coopster
Could someone post some pseudo code? I was able to get the code below generate rows and columns but the sort is messed up.
TIA
if($count%3==0) {
$array1[] = "$title<br>";
}
else if($count%3==1) {
$array2[] = "$title<br>";
}
else if($count%3==2) {
$array3[] = "$title<br>";
}
<table border="0">
<tr>
<td align="left" valign="top" width="207">
<?php if($array1) {
foreach($array1 AS $column_1) echo $column_1;
} ?></td>
<td align="left" valign="top" width="208">
<?php if(isset($array2)) {
foreach($array2 AS $column_2) echo $column_2;
}?></td>
<td align="left" valign="top" width="208">
<?php if(isset($array3)) {
foreach($array3 AS $column_3) echo $column_3;
}?></td>
</tr>
</table>