Reply to Re: Complicated while loop for a simpleton

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация