解决方案 »

  1.   


    $sqlstr = "select * from table where id<6";
    $query = mysql_query($sqlstr) or die(mysql_error());
    while($thread=mysql_fetch_array($query)){
        $result[] = $thread;
    }
    print_r($result);
      

  2.   

    select cate1, group_concat(cate2) as cate2 from tbl_name where cate2!='' group by cate1 order by id
        cate1                    cate2 
    Protect    Power Bank Protectio,Table Protection,Phone Case 
    Power Wall Charger,Car Charger,Power Bank 
    Keyboard&Mouse Mouse,Keyboard 
    Headphone      Bluetooth Headphone,Earphone,Headphone 
    Bluetooth_Speaker Wall Charger,Car Charger,Power Bank 
      

  3.   

    无限级分类要怎么做,该怎么优化?
    cate2中的数据怎么提取成单个的结果,以逗号为界。
      

  4.   


    可以去php基础 已解决模块 有xu老大,专门讲解无限极分类