search

Home  >  Q&A  >  body text

ThinkPHP 3.2 background paging returns all data after clicking the next page

以下是部分代码:

$page           = new \Common\Lib\Page($count, 10);

$page->rollPage = 7;

$page->setConfig('theme', '%HEADER% %FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END%');

$limit = $page->firstRow . ',' . $page->listRows;

$list  = D('MemberView')->field('*')->where($member)->order('member.id desc')->limit($limit)->select();

为梦兼程为梦兼程2092 days ago1249

reply all(4)I'll reply

  • 为梦兼程

    为梦兼程2019-04-12 14:38:35

    Thank you very much, this is really useful, it solved the problem that has been bothering me for a long time

    reply
    0
  • C .

    C . 2019-04-10 13:57:31

    https://www.cnblogs.com/cuizhenyu/p/7987696.html Please refer to it

    reply
    1
  • 为梦兼程

    Thank you very much. This is really useful. It solved a problem that has been bothering me for a long time.

    为梦兼程 · 2019-04-12 14:38:54
  • Cancelreply