Forum Moderators: open
When storing a paragraph of text in a MySQL DB, I follow either of the two methods:
- Store the text with \n line breaks and convert the line breaks to html breaks using nl2br when the data is being displayed
- Store the text with html breaks during insert.
I was wondering if there are advantages in storing text as it is. That is, \n line breaks. Is there a performance decrease in converting line breaks to html breaks during execution? Am using PHP..
TIA
- Store the text with \n line breaks and convert the line breaks to html breaks using nl2br when the data is being displayed
- Store the text with html breaks during insert.