Home > Backend Development > PHP Tutorial > mysql php 为什么只查询出来100条数据,急死了

mysql php 为什么只查询出来100条数据,急死了

WBOY
Release: 2016-06-23 13:47:43
Original
1571 people have browsed it

php代码:

<div class="category"><?php                 $pindaoArr = PindaoModel::model()->findAll('type="goods"','id DESC', null,500);                foreach($pindaoArr as $pindao){                ?><a href="/theme/daogou/view/tag.php?id=<?php echo $pindao->id;?>" target="_blank"><?php echo $pindao->name; ?></a>  <?php }; ?></div>
Copy after login


ListPindao.php 文件代码如下

<?phpinclude './../../../include/frontcommon.inc.php';$pindaoArr = rGetPindaoArr();$dataPindaoArr = rGetDataPindaoArr();$categoryArr = rGetCategoryArr();$currentPage='tesezhuti';
Copy after login


到底哪里出问题了,只显示100条数据,多了就不显示,是不是MYSQL  哪里限制的,


回复讨论(解决方案)

我个人认为 应该代码获取内容太多,内存不够了;建议去改一下php.ini文件  memory_limit  

不是主机问题,本地测试的,不存在这样的问题

1、可能只有那么多条数据
这与本地测试不同,两边的数据库极可能不一样

2、你是用的都是自定义的类和函数,没有源码也不可能知道是否是程序问题

我也搞晕了,呵呵,不纠结了,通过其他方法实现吧

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