I'm pulling my hair with this one, and I can't find an obvious solution.
Basically, I want to load all the rows retrieved during a while(mysql_fetch_row) loop into an array which can then be accessed globally outside of the loop. Is it possible, or are the limitations of initiating an array preventing it?
what I want to do is something like...
while ($query=mysql_fetch_row($dbquery) {
$query_array=xxxx // load the rows into an array
}
$foo=$query_array[0][1]; //2nd field from first row?
$bar=$query_array[1][4]; //4th field from 2nd row?
I think this will require a multidimensional array, but since I can't see how to load such an array, I'm a bit stumped