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
https://forums.phpfreaks.com/topic/47956-solved-problem-with-output/
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

 

Archived

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

×
×
  • 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.