PHP输出排序
$all_book=$sql->mdenin_select("SELECT * FROM `banner_news` WHERE `news_fenlei` ='$v1' LIMIT 0 , 1200");
foreach ((array)$all_book as $IDwuliu) {
?>
=$IDwuliu['key'];?> |
数据一共52条,我想排成一行5列,一共11行。怎么做到。
------解决方案--------------------
PHP code
for($i=0;$i";
for($j=0;$j$array[$c]";
}
echo "";
} <div class="clear">
</div>
登录后复制