Display text format from databse

I’ve created a page that writes to my database so I can use this information to display on a page. But my text has no line breaks or special characters that I entered in it. Is there something in my database that I need to address so I can see the breaks, spaces, or anything else that comes across fine in HTML?

Incidentally, my fields are set to Text type, and my collation is utf8_general_ci. I’m not sure if that has anything to do with it.

What kind of text and characters?

nl2br() is likely what you are after.

Sponsor our Newsletter | Privacy Policy | Terms of Service