cannot put msSQL column names into array
<p>I'm trying to put the column names of a msSQL table into an array. Using</p>

<pre><code>for ($i = 0; $i &lt; mssql_num_fields($result); ++$i) {
    echo mssql_field_name($result) . "&lt;br&gt;&lt;br&gt;";
}
</code></pre>

<p>the column names print to the screen just fine. Also <code>get_type()</code> shows that they are strings. However, when I try to put them into an array like this:</p>

<pre><code>$column_names = array();
for ($i = 0; $i &lt; mssql_num_fields($result); ++$i) {
     $current_column = mssql_field_name($result);
     array_push($column_names, $current_column);
}
</code></pre>

<p><code>var_dump($column_names);</code> gives me an array (albeit the expected length) of boolean values. All false. I would expect to see an array containing the names of all my columns. What am I doing wrong here? Thank you</p>
