Re: 2 dimension array have a max lenght ?
- From: "babal" <lokeshjadwani@xxxxxxxxx>
- Date: 22 Aug 2006 00:19:24 -0700
Hi
i don't think so that a array have limitation for no of records
u can use
pg_fetch_array ( resource result [, int row [, int result_type]] )
function,
it will returl itself a array that u can assign to ur multi dimentional
array.
Lokesh jadwnai
Marie-Eve wrote:
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 !
.
- Follow-Ups:
- Re: 2 dimension array have a max lenght ?
- From: Marie-Eve
- Re: 2 dimension array have a max lenght ?
- References:
- 2 dimension array have a max lenght ?
- From: Marie-Eve
- 2 dimension array have a max lenght ?
- Prev by Date: How do I set Session Variables
- Next by Date: Re: setting sessions in a form
- Previous by thread: Re: 2 dimension array have a max lenght ?
- Next by thread: Re: 2 dimension array have a max lenght ?
- Index(es):
Relevant Pages
|