Home Article tp5整合数组

tp5整合数组

Release time:2019-07-22 Author:Mr.赵 Reading volume:84
    $list=Db::name('article')->where('article_cate_id='.$id)->order('create_time desc')->paginate(15);
        $asd=array();
        foreach ($list as $key=>$value){
            $imgas=Db::name('attachment')->where('id='.$value['thumb'])->find();
            $value['imgs']=$imgas['filepath'];
            $asd[]=$value;

        }



  
I want to comment
Leave a message
http://boke.zhaozhiqi.top/index.php/
User login
You have not written any reviews yet!
You have commented!
Can only praise once!
You have a collection!