TP5.1 查询数据库中上一条和下一条记录
->where("id", ">", $id)->order("id", "asc")->find();
->where('id' , '<' , $id)->order("id", "desc")->find();
- PHP
- 2020-11-12
- 746
->where("id", ">", $id)->order("id", "asc")->find();
->where('id' , '<' , $id)->order("id", "desc")->find();