[英]PHP Pagination target page
My code is working properly but when i click on the next page in pagination, nothing appear in the page. 我的代码正常运行,但是当我单击分页的下一页时,该页面中没有任何内容。
I think the problem is the target page 我认为问题是目标网页
$cat_id = $_GET['cat'];
$targetpage = "test2.php?cat=$cat_id";
Because my url that I want to have next page is like this 因为我想要下一页的网址是这样的
尝试像下面这样编码您的网址
$targetpage = "test2.php?cat=".urlencode($_GET['cat']);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.