这让我很头疼。它已经4个小时,我只是围绕它:(我的问题是当我从MySQL获取大的结果到PHP它不显示任何东西。总的结果是约20000+数据。所以我做的是极限结果到1000并没有显示结果如预期。结果不显示,如果结果很大
有一些配置,我需要设置或更改?
下面
我的示例查询不工作(当结果多于10000)
select * from `tbl_item` where `pricelist_id` = 1 and `published` = 'unpublished' and `type` = 'item' and `parent_id` = 0 and `tbl_item`.`status` <> 'inactive' order by `order` asc limit 10000
工作(只限制结果为1000)
select * from `tbl_item` where `pricelist_id` = 1 and `published` = 'unpublished' and `type` = 'item' and `parent_id` = 0 and `tbl_item`.`status` <> 'inactive' order by `order` asc limit 1000
奇怪。帮助任何人。
Regards,
尝试'ini_set('memory_limit','254M'); //你的内存限制为字符串\t ini_set('max_execution_time',0);' –
20000是MySql处理的数据量非常小,PHP配置或代码必须有错误。请向我们展示您的PHP代码,以及'memory_limit'和'max_execution_time'是否已设置? –