textarea in mysql

amber.long83's Avatar, Join Date: Nov 2009
Go4Expert Member
hello guys

Any one can help me in my problem How can i send the content of a textarea to my mysql db?
i've noticed that it won't send the <br>'s and stuff with it...

Can someone post an example how to do it? The full code if it is possible...

thanks in advance
0
venami's Avatar, Join Date: Dec 2008
Ambitious contributor
I think you might have used some special characters in your textarea which would have prevented going into the DB.

If you try to send your textarea into MySQL database, what it says?
0
rekha's Avatar
Contributor
Hi,

I think you have to convert textarea content to html_entity_decode and then insert it into database.

Last edited by rekha; 25Nov2009 at 14:28..
0
amber.long83's Avatar, Join Date: Nov 2009
Go4Expert Member
thanks for suggestion
0
urstop's Avatar, Join Date: Oct 2007
Contributor
You can try replacing the newline character with break tag before insterting it into the database.