我有这个while循环:
// Upgraded Checking
if($ir['upgraded'] < time()) $upgsql = " AND `aUpgraded`='0'";
else $upgsql = " AND ((`aUpgraded` = 1 AND `aUpgradedType` = '{$ir['upgname']}' AND `aUpgradedType` != '') OR (`aUpgraded` = 1 AND `aUpgradedType` = '') OR `aUpgraded` = 0)";
$ess=mysql_query("SELECT * FROM ads WHERE aClicksLeft3>0 AND aPaused='0' AND aApproved>0 ".$upgsql."");
while($extendedData == mysql_fetch_assoc($ess)){
$contents.="hey!!!";
};//End While
每当我运行它时,我都会收到此错误: Allowed memory size of 134217728 bytes exhausted
我不知道为什么这个while循环要使用这么多内存来执行。这只是一个简单的循环。
有人知道它为什么会这样吗?我的脚本中有很多其他的 while 循环,而且我以前从未遇到过这个错误。