When I have => $data_type in there my column title values for $field_name display correctly. If I take out => $data_type it displays the the column type. IE SQLNUMINT SQLCHAR...instead of the column title. On 6/23/08, Daniel Brown <parasane@xxxxxxxxx> wrote: > > On Mon, Jun 23, 2008 at 1:46 PM, Dan Shirah <mrsquash2@xxxxxxxxx> wrote: > > > > if($numberFields) { // Check if we need to output anything > > $types = ifx_fieldtypes($query); > > if (isset($types)) { > > foreach($types as $field_name[] => $data_type) { > > } > > } > > Is there a particular reason you're telling PHP that, "for each > $types variable, set this key of the $field_name array to equal > $data_type, and do nothing else about it"? > > Is this what you meant to do for some reason? > > <?php > > if(isset($types)) { > foreach($types as $field_name => $data_type) { > $$field_name = $data_type; > > // Or should it be something like this? > $column_names[] = $field_name; > } > } > > $headers = join(',', $column_names)."\n"; > ?> > > > -- > </Daniel P. Brown> > Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just > $59.99/mo. with no contract! > Dedicated servers, VPS, and hosting from $2.50/mo. >