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

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

WBOY
Release: 2016-06-13 11:47:35
Original
1199 people have browsed it

thinkphp从数据库里读取很多数据,只显示前面一部分
thinkphp从数据库里读取很多数据,只显示前面一部分。
------解决方案--------------------
贴出你的代码瞧瞧
------解决方案--------------------
如果在读时限制就用 sql limit
如果在php中按制,可以for来控制,或者 array_slice 取出一段。

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