..........控制器方法 public function index() { //接受搜索关键字 $word=input('word'); $where=[]; if (!empty($word)){ $where['title']=['like',"%".$word."%"]; } $data=ArticleModel::index($where,$word); if (!empty($data)){ foreach ($data as $k=>$v)
select * from (select t.*,rownum no from " + table + " t where scbj=0)where (no>(" + PageNo + "-1)*" + PageSize + " and no<=(" + PageNo + ")*" + PageSize + ") select * from (select t.*,rownum no from
public function getNewsList(){ $condition = []; $cond = []; if (!empty($_GET['title'])) { array_push($condition, ["title", "like", "%{$_GET['title']}%"]); $cond['title'] = $_GET['title']; } if (!empty($_GET['status'])) { arra