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

PHP输出排序解决方案

WBOY
Release: 2016-06-13 13:17:25
Original
821 people have browsed it

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>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template