thinkphp database chain query sorting problem
一個人去看海
一個人去看海 2019-04-30 15:55:10
0
1
794

$data = $this->db->table('travels')->where(array('status'=>0,'hot'=>1))->order( 'view','desc')->lists();


$data = $this->db->table('travels')-> ;where(array('status'=>0,'hot'=>1))->order('view','asc')->lists();


No matter what, it is sorted from small to large

What I want to do from large to small is a chain query

一個人去看海
一個人去看海

reply all(1)
一個人去看海

Already know the answer, order('view asc')

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template