Home >Backend Development >PHP Tutorial > PHP输出排序解决方案

PHP输出排序解决方案

WBOY
WBOYOriginal
2016-06-13 13:17:25850browse

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>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn