Re: text insertion

From: Date: Wed, 10 Aug 2011 21:37:28 +0000
Subject: Re: text insertion
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-314471@lists.php.net to get a copy of this message
No luck. Thanks. On Aug 10, 2011 4:17 PM, <hdedeyan@videotron.ca> wrote: > > how about > > echo nl2br($your_content); > > > > > ----- Original Message ----- > From: Chris Stinemetz <chrisstinemetz@gmail.com> > Date: Wednesday, August 10, 2011 5:09 pm > Subject: Re: [PHP] text insertion > To: "Daniel P. Brown" <daniel.brown@parasane.net> > Cc: Ashley Sheridan <ash@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 > >

« previous php.general (#314471) next »