11111
Posted <一>
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了11111相关的知识,希望对你有一定的参考价值。
public function page() { if (Request::instance()->isAjax()){ $title = " 1=1 "; if(!empty($_POST["title"])){ $name = " title like ‘%".$_POST["title"]."%‘ "; } $condition = " {$title} "; $arr = Db::name(‘article‘)->field(" count(*) as num ")->where($condition)->find(); echo ceil($arr["num"]/6).chr(2).$arr["num"]; } }
public function click() { if (Request::instance()->isAjax()){ $page = $_POST["page"]; $title = " 1=1 "; if(!empty($_POST["title"])){ $name = " title like ‘%".$_POST["title"]."%‘ "; } $condition = " {$title} "; $arr = Db::name(‘article‘)->where($condition)->page($page,6)->select(); Return($arr); } }
以上是关于11111的主要内容,如果未能解决你的问题,请参考以下文章