显示出来。我联想到在此曾看到的一篇文章——“关于%的技巧”,不仅非常简单地解决了
问题,而还且将每行2列扩展到N列:
例如:$n为Integer
?>
......
$sql="select id,subject from new ";
ora_parse($cursor,$sql);
ora_exec($cursor);
$i=0;
while(ora_fetch($cursor))
{
$i++;
if ($i%$n==1)
{
echo "
echo "
}
elseif ($i%$n==0)
{
echo "
echo "
}
else
echo "
}
?>
......
<