Ask a Question related to PHP Development, Design and Development.
-
Cpt John W. Holmes #1
Re: [PHP] Formatted text from mySQL DB
From: "PHPSpooky" <phpspooky@mjimm.com>
Ah, this question again. Has it been four days already?> When I create any field and let data be sent into my mySQL DB through
> it.. it goes ok. But when I retrieve it.. the data comes completely
> unformatted.
HTML does not render new lines. Have a look at the source code of your page
and you'll see that the text is indeed on separate lines. HTML only
understands something like <br />, though, to go to a new line. So, you need
to replace the new line characters with HTML breaks in order to maintain
appearance.
[url]www.php.net/nl2br[/url]
---John Holmes...
Cpt John W. Holmes Guest
-
importing formatted text
OK... how long has this been... but i found something. You can actually use Dreamweaver to Edit your content in HTML, then use the following... -
How do you store formatted text to be displayed!
Hi please can someone help. Im developing a dynamic website and all is well, but i want to be able to store all the text somehow on the database,... -
Formatted text input
My site has a very basic admin area, with text boxes in a form to add data to the database. However, I have to enter the text with all the html... -
Formatted text select tool gone in 6.0 pro
Hi, What happened to the Table/Formatted Text Select Tool ???? This was available in 5.0 but gone in 6.0. Has this been replaced or simply... -
Paste Formatted Text
This has been driving me crazy: I have started a database of interesting articles I have found onlne to read at a later time. A lot of the... -
Phpspooky #2
RE: [PHP] Formatted text from mySQL DB
Ewwwwwwwwww!!!! I do not like coffee in my mouth.. but nostrils! Yuck!> [snip]
> Ah, this question again. Has it been four days already?
> [/snip]
>
> ROFLMFAO!!!!! I snorted coffee through my nose!!! :)
PHPSpooky
Phpspooky Guest
-
Phpspooky #3
RE: [PHP] Formatted text from mySQL DB
Astrum Et Securis!
Thanks all.. for the very needed input.
[url]www.php.net/nl2br[/url] has been very helpful. I'm still testing out the
different ways. There appears to be a differentiation between people's
usage and formulas for the same. While some find nl2br() very helpful,
others find it a waste of time. And some have their own ereg_replace()
formulas assisting them.
A little bit of testing will have me on my way.
Thanks again..
Dominor!
PHPSpooky
you> HTML does not render new lines. Have a look at the source code of your
> page
> and you'll see that the text is indeed on separate lines. HTML only
> understands something like <br />, though, to go to a new line. So,maintain> need
> to replace the new line characters with HTML breaks in order to> appearance.
>
>Phpspooky Guest
-
Phpspooky #4
RE: [PHP] Formatted text from mySQL DB [nl2br]
Astrum!
$wow = nl2br($myrow[data]);
echo $wow;
works excellect for me!!
Thanks!!
Dominor. .
PHPSpooky
Phpspooky Guest



Reply With Quote

