Home > Backend Development > PHP Tutorial > phpcms2008 分页url链接失误解析

phpcms2008 分页url链接失误解析

WBOY
Release: 2016-06-13 12:49:53
Original
866 people have browsed it

phpcms2008 分页url链接出错解析。


今天在用phpcms做站的过程中分页出现了上面图中所示的问题,第一次遇到这样的问题,开始搞得我一头雾水,请教了下丁xx,分析了一下出错的原因:

1.分页不能正常显示是在生成的时候出现分页大小和后台设置不同导致的,解决办法(1):可在后台修改分页设置,如下图:



3.解决办法(2),直接当前分页出错的列表页的get sql语句中多加一句 catid="$catid"【红色代码即是】,  {get sql="select * from `phpcms_content` where catid = $catid and status=99  order by updatetime desc" rows="10" page="$pages" catid="$catid"}

4.完美解决。效果如下:



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template