php 2d array ... store mysql results in 2d array
<p>I have a sql statement that returns a number of records each having 10 attributes. How can i get the data and put it into a 2D array. Currently Im doing this :</p>

<pre><code>while($row1 = mysql_fetch_array($result1))
{
    echo $row1[0][1]; //There is an error here
}
</code></pre>

<p>Is $row1 a 2D array? (It should be because Im getting n*m results). If $row1 is a 2d array then shouldn't i be able to access $row[0][1]?</p>
