Jump to content

[SOLVED] Preg Match Problem...


phpSensei

Recommended Posts

Trouble is, When you insert a normal text area on your page and you type in something like text:

 

"TextTextTextTextTextTextTextTextTextTextTextTextTextTextText

TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText

TextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextTextText

 

TextTextTextTextTextTextTextTextTextTextTextTextText

TextTextTextTextTextTextTextTextTextTextTextTextTextTextText"

 

You can the line break between paragraph one and paragraph two, but when you put this data into your mysql database, that break is gone. Therefor the text would be stuck together...

 

How do you make it so it turns that empty space into a <br> or New line

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.