求教一个问题,为什么排序只作用于从低到高,从高到低没有反应。dump一看才发现从高到低没有输出。

浏览:458 发布日期:2015/07/05 分类:求助交流
    elseif($hopeprice="从低到高"){
                     $handmebuyinfo=M("handmebuyinfo");
                     $row=$handmebuyinfo->order('hopeprice')->select();
                     //dump($row);                            
                     }
                     elseif($hopeprice="从高到低"){
                         $handmebuyinfo=M("handmebuyinfo");
                         $row=$handmebuyinfo->order('hopeprice DESC')->select();
                         dump($row);
                     }
是elseif有问题吗?
最佳答案
评论( 相关
后面还有条评论,点击查看>>