2 dimension array have a max lenght ?



I have 6688 lines in my table.
But when I try to display them with a 2 dimension array, it stop at
line 5804.
Here is the code example:

WORK (simple array):
$i = 0;
while ($row = pg_fetch_row($result)) {
echo $i . "----";
echo "id: $row[0]";
echo "<br />\n";
$i++;
}


DON'T WORK (same code but with a 2 dimension array):
$i = 0;
while ($results[$i] = pg_fetch_row($result)) {
echo $i;
echo ";";
echo $results[$i][0];
echo ";";
echo $results[$i][4];
echo "<br />\n";
$i++;
}

Someone can explain that to me ?

Thanks !

.



Relevant Pages

  • Re: newbie - variable to string
    ... $value1 = end; ... and only display down, and the last position and only display up and ... The value is from the end of an array, this works fine when i use echo to ...
    (alt.php)
  • mysql_fetch_array
    ... Basically what I want to do is display the results of a search from a ... MySQL database. ... I can get data into a array as follows... ... echo $row; ...
    (alt.php)
  • print "..." question
    ... Is it weird in this case where I have to display an array? ... would be better to have the entire array in php but now I am not sure if ... echo $row; ...
    (alt.php)
  • print "...."; Question
    ... Is it weird in this case where I have to display an array? ... would be better to have the entire array in php but now I am not sure if ... echo $row; ...
    (comp.lang.php)
  • Re: newbie: array passing problem
    ... Perhaps I didn't make myself very clear in my previous post, but you actually *can* do that in VB (pass a reference to a specific "column" of a 2D array to a subroutine in such a way that the subroutine only needs to use a single index). ... The structure itself of course only takes up about twenty or so bytes of memory. ... You can then point that SAFEARRAY structure at an uninitialised VB array of Singles as Single) and as far as VB is concerned the myColumn array will be a one dimension array of 500 variables of the type Single. ...
    (microsoft.public.vb.general.discussion)