Clicking the next page on the last page will report an error, and its p will become -1
$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? ?
$p = ($p<1)?1:$p;
$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? ?
$p = ($p<1)?1:$p;