textarea in mysql

Go4Expert Member
17Nov2009,18:46   #1
amber.long83's Avatar
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
Ambitious contributor
17Nov2009,22:33   #2
venami's Avatar
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?
Contributor
25Nov2009,14:25   #3
rekha's Avatar
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..
Go4Expert Member
2Dec2009,15:19   #4
amber.long83's Avatar
thanks for suggestion
Contributor
3Dec2009,15:59   #5
urstop's Avatar
You can try replacing the newline character with break tag before insterting it into the database.