how about 

echo nl2br($your_content);



----- Original Message -----
From: Chris Stinemetz <[email protected]>
Date: Wednesday, August 10, 2011 5:09 pm
Subject: Re: [PHP] text insertion
To: "Daniel P. Brown" <[email protected]>
Cc: Ashley Sheridan <[email protected]>, PHP General 
<[email protected]>

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