Jump to content

[SOLVED] Problem with output


SkyRanger

Recommended Posts

I am having a problem with the output in php from mysql

 

When somebody posts a message such as:

 

Hello how are you,

 

I am fine.

 

and another para...

 

etc.

 

 

Well when I pull it back out of mysql to display it shows:

 

Hello how are you,I am fine.and another para...etc.

 

Is there any way I can fix this?

Link to comment
Share on other sites

Ok, user types entry into a textarea

 

example of textarea box:

This would be a test message that the user would type.

This would be the start of there next paragraph

and so on.

Signed
Guest User

 

This is how it would output on the page after I pulled it from mysql:This would be a test message that the user would type.This would be the start of there next paragraphand so on.SignedGuest User

 

I need to figure out how to either have it inserted with the line breaks without the visitor having to manually put them in or have my php code automatically put them in when it is pulled out of mysql.

 

In my table I am using:

 

omsg  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.