Jump to content

Formatting text from database


jonaHill87

Recommended Posts

Hi all. I have a question about text that is input from a user into a form and then placed in a database field. I'm creating a small forum and I'm looking for a solution for displaying the input text the way it was typed into the form. For example if a user hits the enter key to create a new paragraph. When I pull the text out of the database and then display it using echo, the text is all in one line. I hope that made sense. I'm using a TEXT field in my database table. Any help would be greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/109652-formatting-text-from-database/
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.