Hi all,
(I'm not sure if this is the right place to submit this but I'm having
problems with the php.general group)
I am in desperate need for a solution to HTML text fields not storing new
lines. I'm storing news articles in a database but all the text just ends up
in a big block because it
The line breaks may be there, but HTML will not render them.
Try this:
$outputstring = nl2br($stringfromDB);
print(p$outputstring/p);
or something like this to see if the newlines will convert to br and
render correctly.
John
On Fri, 6 Jul 2001, Mat Marlow wrote:
-Hi all,
-(I'm not
the database and output the data, swap your
special newline chars with \n.
A bit of a pain, but it works.
Kevin Johnson
KJ
-Original Message-
From: Mat Marlow [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 8:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] TEXT fields without line