Thinkphp 怎么按ID从大到小排序
$list=$Dao->query("select*fromcodepay_order")->order('iddesc')->select();这样子会出错public...
$list = $Dao->query("select * from codepay_order")->order('id desc')->select();这样子会出错
public function paylist(){
$Dao = new Model();
$list = $Dao->query("select * from codepay_order");
$this->assign('list',$list);// 赋值数据集
$this->display(); // 输出模板
} 展开
public function paylist(){
$Dao = new Model();
$list = $Dao->query("select * from codepay_order");
$this->assign('list',$list);// 赋值数据集
$this->display(); // 输出模板
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询