Jump to content

Outputting "text" from mysql with whitespace


onemind

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. :)
Link to comment
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.