Hi,
I try to construct an array such that each element of it is another
array returned by the fetch_array_fun ction:
for ( $i = 1; $i<=$n; $i++ )
{
$ar[$i] = mysql_fetch_arr ay( $result );
print "$ar[$i][fieldname]\n";
}
It prints "Array[fieldname]".
If I replace $ar[$i] by $ar everything works fine! Could you pleas
help me with that?
I try to construct an array such that each element of it is another
array returned by the fetch_array_fun ction:
for ( $i = 1; $i<=$n; $i++ )
{
$ar[$i] = mysql_fetch_arr ay( $result );
print "$ar[$i][fieldname]\n";
}
It prints "Array[fieldname]".
If I replace $ar[$i] by $ar everything works fine! Could you pleas
help me with that?
Comment