Reply to Re: Problem When Serializing Array With Multiline Text
Posted by Mike P2 on 04/30/07 22:47
Do you use the relevant real_escape_string() function on the
serialized data before inserting into the database? It does escape
newlines, which I have never seen being a problem anyway, but it is
good practice nonetheless. If you are just using addslashes(), it's
not escaping newlines.