I have a multi-dimensional array that is return from a MySQL query. This is the code that put the results into the array.
for ($i = 0; $i < $news_numrows; $i++)
{
for ($j = 0; $j < db_num_fields ($news_query_result); $j++)
{
$temp_array[$i][$j] = $temp_row[$j];
}
}
Now, I want to references variables in the array like this:
echo $temp_array[4]["some_field_name"];
However, I'm finding that it's not working too well. Anyone have any ideas?