Home > Backend Development > PHP Tutorial > thinkphp从数据库里读取很多数据,只显示前面一部分

thinkphp从数据库里读取很多数据,只显示前面一部分

WBOY
Release: 2016-06-23 14:39:52
Original
1282 people have browsed it

thinkphp从数据库里读取很多数据,只显示前面一部分。


回复讨论(解决方案)

过滤掉整个数据库,而不是某一个搜索页面

贴出你的代码瞧瞧

如果在读时限制就用 sql limit
如果在php中按制,可以for来控制,或者 array_slice 取出一段。

topN()

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