请问一下论坛里面,主题帖跟评论不是同一张表的分页有关问题

WBOY
Release: 2016-06-13 12:47:59
Original
683 people have browsed it

请教一下论坛里面,主题帖跟评论不是同一张表的分页问题
如题,主题帖是一张表,评论是另外一张表,请教一下,如何实现就是类似discuz论坛的文章的分页功能。
怎么样实现方便一点呢?

php,分页
------解决方案--------------------
无刷新分页就采用jquery.ajax来处理。刷新分页的话传session判断用户访问第几页就行了。
分页还是很简单的。主题帖表A,与评论表B,肯定是有外键相关联的。所以不用纠结啊。
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!