You are here: Re: Where did my Hard Returns go? « PHP Programming Language « IT news, forums, messages
Re: Where did my Hard Returns go?

Posted by ward on 03/01/06 19:04

On Wed, 01 Mar 2006 11:40:45 -0500, Jerry Stuckle
<jstucklex@attglobal.net> wrote:

Jerry, thank you.

I don't know why I didn't try that.

I get wrapped around the axle and don't see the trees from the forest.
IOW, I forgot that $row['task_usaction'] is the variable.

Anyhow, thanks again. Looks like I need to learn the very basics of
programming.

I may have another challange if you wish to take a looksee. It is
more complicated than this.

--Ward


>
>Ward,
>
>Just use nl2br() on the data from the database which has newlines not
>the entire table, i.e.
>
> echo '<tr valign="top" bgcolor="' . $bg . '">
> <td align="left"><a href=edit_task.php?id=' .
> $row['task_id'] . '">Edit</a></td>
> <td align="left">' . $row['task_task_no'] . '</td>
> <td align="left">' . $row['icaotask_no'] . '</td>
> <td align="left">' . nl2br($row['task_usaction']) . '</td>
> </tr>';
>
>if only $row['task_usaction'] has the newlines.

 

Navigation:

[Reply to this 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

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