Page 1 of 1

array max question

Posted: Thu Nov 13, 2003 12:46 pm
by gaagaagui
Regarding:

$inr = mysql_num_rows($iresult);
$irow = Array();
for ($a=0; $a<$inr; $a++) {
array_push($irow, mysql_fetch_object($iresult));
}

My result set is quite large - about 7000 records including about 20 fields from an inner join - I need all 20 fields. The php script konks out after about 1500 iterations I assume because of a maximum size for an array. Is there a better way to store a high number of results sets in an array than the way? Perhaps this is not the forum for this question. Thanks for any help.

Posted: Thu Nov 13, 2003 3:41 pm
by Weirdan
It's possible that you ran out of memory. Check the php.ini. Default memory limit is 8MB.