Hello Teacher Zhu, there is a small bug in your paginated course (about 16 minutes into the video course). The page number jumps to 1, but the actual data still displays the content on page 2. And why? It will not change even if you click it. You have to manually change the p value to 0 in the URL column to jump back to page 1. How to solve it? ?
$Previous = ($page - 1)<1?1:($page-1); //Prevent the previous page from overflowing
##<li> ; <a href="?num=<?=$num?>&page=<?php echo $Previous;?>" aria-label="Previous"> <span aria-hidden="true">«</span> </a> </li> ;Then call this $Previous variable and do not perform calculations in the <a> tag, then there will be no problem.Teacher, why have I changed two browsers and still can’t reply the code to the website? The reply button is not reflected when clicked..., website BUG?
This is a second-year course, and the details are difficult to recall. You can post the code and everyone will help you analyze it