Loop through database rows and create a single array
<p>I have nooby PHP question that I can't figure out!</p>

<p>I loop through rows from my database:</p>

<pre><code>    $data = array();

    while($row = sqlsrv_fetch_array($queryResult, SQLSRV_FETCH_ASSOC)){

        $data[] = $row;
    }
</code></pre>

<p><code>$data</code> now contains an array within an array how can I have it so that its still just a single array?</p>

<p>Thanks all</p>
