Hey!
I want to store the contents of a textarea into a database, but I want to preserve the line breaks so that when the data is put back out the breaks are there.
Without nl2br() my script runs normally, but with nl2br() I get the following mysql error.
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(year,make,model,trim,exterior,interior,price,vin,description) VALUES ('2013','F' at line 1"
The value that I want to preserve the breaks for is description.
Thanks!
-Chase