Hi guys

I've got a database with a table that stores paragraphs of text. What happens at the moment is that when I pull the text from the database and display it on the page all the line breaks are missing. I'd like to keep the line breaks. I've checked my database and I can see the line breaks there.

Is there any php code that will allow me to keep the line breaks?

Recommended Answers

All 4 Replies

nl2br function!

commented: Helpful response as always +1

You are the man nav33n! Can I rent you please ;)

You are the man nav33n! Can I rent you please ;)

:P lol..

You can be my code book on legs ;) LOL

commented: There are so many things I dont know! LOL..lets not make that a chat thread! :P +2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.