Re: text insertion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No luck. Thanks.

On Aug 10, 2011 4:17 PM, <hdedeyan@xxxxxxxxxxxx> wrote:
>
> how about
>
> echo nl2br($your_content);
>
>
>
>
> ----- Original Message -----
> From: Chris Stinemetz <chrisstinemetz@xxxxxxxxx>
> Date: Wednesday, August 10, 2011 5:09 pm
> Subject: Re:  text insertion
> To: "Daniel P. Brown" <daniel.brown@xxxxxxxxxxxx>
> Cc: Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx>, PHP General <
php-general@xxxxxxxxxxxxx>
>
> > >
> > >    Use HTML 'pre' tags:
> > >
> > >        <pre><?php echo $your_content; ?></pre>
> > >
> >
> > I just tried that and that puts all the text on a single line.
> >
> >
> > echo '<tr class="topic-post">
> > <td class="user-post"><strong>' . $posts_row['first_name']
> > . ' ' .
> > $posts_row['last_name'] . ' ' . date('m-d-Y h:iA',
> > strtotime($posts_row['store_date'])) . '</strong></td>
> > </tr>
> > <tr class="visit">
> > <td class="post-content">Broad Band test results:</strong>
> > ' .
> > $posts_row['store_tptest'] . '<br/><br/><pre>'
> > .$posts_row['store_comments'] . '</pre></td>
> > </tr>';
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux