Heim  >  Artikel  >  Backend-Entwicklung  >  mysql php 为什么只查询出来100条数据,急死了

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

WBOY
WBOYOriginal
2016-06-23 13:47:431518Durchsuche

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>


ListPindao.php  文件代码如下

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


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


回复讨论(解决方案)

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

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

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

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

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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:用phpExcelReader不能导入大量数据Nächster Artikel:php编码问题