I did a search on this but nothing seemed to fit what I need. Basically, I have a text area to write in, like the box I'm using right now to ask the question. What I want is that in the case of a user typing,
"Hello, my name is John Doe.
I like ice cream and cookies.",
the database registers it as:
"Hello, my name is John Doe.<br /><br />I like ice cream and cookies."
(EDIT: Or better yet, <p>Hello, my name is John Doe.</p><p>...)
I haven't figured out how to do that though. I tried
nl2br($_POST['story'])
but I got this error:
Column count doesn't match value count at row 1
How can I do this? It seems like it should be a simple substitution, so I just don't get it.