Home  >  Q&A  >  body text

Hello teacher: Pagination problem

Clicking the next page on the last page will report an error, and its p will become -1

代码的人生代码的人生2484 days ago960

reply all(2)I'll reply

  • 日久见人心不古

    日久见人心不古2018-01-20 21:42:59

    $p = ($p<1)?1:$p;This applies to the previous page. Specifically, there will be a problem on the next page you mentioned. It should be related to your code. Can you send the code? ?


    reply
    0
  • 天蓬老师

    天蓬老师2018-01-18 15:54:22

    $p = ($p<1)?1:$p;

    reply
    0
  • Cancelreply