|
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.
[Back to original message]
|