Jump to content

Archived

This topic is now archived and is closed to further replies.

onemind

Outputting "text" from mysql with whitespace

Recommended Posts

Hi,

I have a text field in a mysql table and i output it to my page with php.

The only thing is, the text outputs fine but it gets rid of all whitespace so there are no paragraphs ect and it looks like one big block of text.

Is there any way to preserve the whitespace?

Thanks for any info. :)

Share this post


Link to post
Share on other sites
Use a WYSIWIG editor.

http://www.google.com/search?hl=en&safe=off&sa=X&oi=spell&resnum=0&ct=result&cd=1&q=wysiwyg+editor&spell=1

Share this post


Link to post
Share on other sites
What?

How will that possibly help?

Maybe i want clear enough, i have a field in a mysql table of the "text" datatype.

When i select a text object from the database and output it with php, the whitespace is gone.

I remember there was a solution to this a while back. A certain php function that adds whitespace back to the original text.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.