<?php
//数据分列显示
function displayByTd($colume,$arr)
{
$counter = 1;
echo '<table border="0" width="100%" cellspacing="0" cellpadding="2"><tr>';
foreach($arr as $v)
{
if(!empty($v))
{
echo '<td width=70 nowrap>'.$v.'</td>';
if($counter++ % $colume == 0)
{
echo '</tr><tr>';
}
}
}
echo '</tr></table><br>';
}
?>