Home > Backend Development > PHP Tutorial > 有关问题 循环读取有关问题

有关问题 循环读取有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:44:38
Original
951 people have browsed it

问题求助 循环读取问题

本帖最后由 suifengmin 于 2014-01-12 11:31:45 编辑 $query = $db->query("SELECT * FROM {$pre}spsort ORDER BY list DESC LIMIT 500");
while($rs = $db->fetch_array($query)){
if($rs[type]){
$zhuantip.="
$rs[name] 
";

}else{
$zhuantip.="
    ";
    $zhuantip.="
  • $rs[name] 
  • ";
    $zhuantip.=" 
"; 
}
}

把htm 读取为:


需求部门

       

  • 开发部

  • 人事部

  • 市场部

  • 业务部

  • 财务部



缺编部门



  • 研发部

  • 广告部

  • 出纳部

  • 后勤部

    
  




目前读取出来的是:

专题分类 

  • 分类1 
  •  

  • 分类2 
  •  

  • 分类3 
  •  

专题大类2 

  • 分类22 
  •  
Related labels:
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