Jump to content

echo doesn't display spaces


Collin.Arner

Recommended Posts

Hey guys, I'm looking to get some help with PHP. I'm pretty new, but I can't find an answer or solution to my problem.

 

"Test

 

Test

 

Test"

 

The above is saved to a MySQL database. It shows up fine if I echo it into a <textarea> box, but if I just use echo inside of a <p> tag it shows up

 

Test Test Test

 

Is there any way to display the text properly?

 

Thanks in advance,

-Collin

Link to comment
https://forums.phpfreaks.com/topic/191226-echo-doesnt-display-spaces/
Share on other sites

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.