I have php that currently pulls info from a database and splits it into two columns, with a redesign we’d like this to be split into three columns. Can someone help me rework this code so it will filter the results into three columns.
[php]<?php echo $alpha;?>
<span class="guideColumn">
<?php $flag=1;
}?> <?php doSnippet($row); ?>
<?php if($i==$half){
$flag=2;
?></span> <?php
}}
if($i>$half){
if($flag==2)
{
?>
<span class="guideColumn">
<?php $flag=5;
}?>
<?php doSnippet($row); ?>
<?php if($i==$total){
?>
</span> <?php
}
}
$i++;
}?>
</span>[/php]