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><?phpinclude './../../../include/frontcommon.inc.php';$pindaoArr = rGetPindaoArr();$dataPindaoArr = rGetDataPindaoArr();$categoryArr = rGetCategoryArr();$currentPage='tesezhuti';
我个人认为 应该代码获取内容太多,内存不够了;建议去改一下php.ini文件 memory_limit
不是主机问题,本地测试的,不存在这样的问题
1、可能只有那么多条数据
这与本地测试不同,两边的数据库极可能不一样
2、你是用的都是自定义的类和函数,没有源码也不可能知道是否是程序问题
我也搞晕了,呵呵,不纠结了,通过其他方法实现吧
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号