后台文章排序怎么才可以按自己输入的数字排列?如按4,3,2,1,从大到小排列?
实现方法如下:

修改文件: phpcms\modules\content 中的 content.php

 

代码如下:


$datas = $this->db->listinfo($where,'id desc',$_GET['page']);
 
改成

 
代码如下:

$datas = $this->db->listinfo($where,'listorder ASC, id desc',$_GET['page']);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案