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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php