> > // Initialize/clear the contents of the $row variable > $row = array(); > > // You probably need to reset the $field_name var with each > // iteration over it. from what I understand, foreach will move > // the internal pointer of the array to the end. Then the next > // iteration over the array will start at the end. BAD!!! > reset($field_name); > > > > BTW: what are you doing, if anything, if your data has a comma in it? Jim, I took your advice about clearing the array and resetting the $field_name variable. Thanks! I am not worried about comma's in my data because my application and database do not allow comma's to be input for this information. :) Dan