Re: Output Blank?
| From: | Dan Shirah | Date: | Mon, 23 Jun 2008 18:59:17 +0000 |
| Subject: | Re: Output Blank? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275854@lists.php.net to get a copy of this message | ||
>
> // 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