天天看點

tp5知識點

//閉包查詢
Db::table('think_user')->select(function($query){
     
         $query->where('name','thinkphp')
               ->whereOr('id','>',10)
});

生成的sql語句為:
select * from 'think_useer' where 'name' = 'thinkphp' OR 'id' >10      
__STATIC__/admin/img/1.jpg
代表的是檔案在public/static/admin/img/1.jpg
<img src="/static/admin/img/2.jpg" style="width:100%;height:450px" alt="...">