Posted by David Haynes on 02/27/06 03:46
Nancy wrote:
> "David Haynes" <david.haynes2@sympatico.ca> wrote in message
> news:yXrMf.35896$XG1.23443@fe81.usenetserver.com...
>> Nancy wrote:
>>
>> One thing that occurs to me is that the line:
>> $data_listing = '<tr><td>' . $data_select . '</td>
>>> <td>' . $count . '</td>
>>> <td>' .
>> $data_count_values['data_radius'] . '
>>> mi.</td>
>>> <td>' . $data_date_formatted .'</td></tr>';
>> over-writes any previous value of $data_listing.
>> Is this what you intended?
>
> No. I want it to add to, not overwrite. Will $data_listing .= fix that?
Well, I would do something like:
$data_list .= <<<HTML
<tr>
<td>$data_select</td>
<td>$count</td>
<td>{$data_count_values['data_radius']} mi</td>
<td>$data_date_formatted</td>
</tr>
HTML;
because I like to see the HTML structure as much as I can.
-david-
[Back to original message]
|