title: php return field names of an odbc_exec query
body: <p>I'm using odbc_exec to execute sql.  It returns the results fine, but I would like to get an array of the sql field names.  I have them in the SQL, obviously, but I need a programmatic way to quickly return them from a query</p>
  
  <pre><code>$sql = "SELECT  mv_value, mv_entered_by, mv_student_id, mc_module_id, mc_type
                  FROM MarkbookValue t1
                  RIGHT JOIN MarkbookColumn t2 ON t1.mv_column_id = t2.mc_id
              WHERE DateDiff(minute, mc_date_entered, '" . $date . "') = 0
                  AND mc_entered_by = '" . $name . "' ";
  </code></pre>
  
  <p>Running it through:</p>
  
  <pre><code>     $result = odbc_exec(CONN, $sql);
  </code></pre>
  
  <p>I'd like to get an array listing:</p>
  
  <pre><code>     mv_value, mv_entered_by, mv_student_id, mc_module_id, mc_type
  </code></pre>
  
  <p>so I can then output a CSV with headings</p>