how about 

echo nl2br($your_content);



----- Original Message -----
From: Chris Stinemetz <chrisstinem...@gmail.com>
Date: Wednesday, August 10, 2011 5:09 pm
Subject: Re: [PHP] text insertion
To: "Daniel P. Brown" <daniel.br...@parasane.net>
Cc: Ashley Sheridan <a...@ashleysheridan.co.uk>, PHP General 
<php-general@lists.php.net>

> >
> >    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
> 

Reply via email to