Gagik
asked on
Save line breaks from <textarea> into MySQL without showing </b> etc...
Hi, I have a <textarea> in whitch I my text and then submit it to a MySQL database trough PHP.
The problem is that my text is saved ALL IN ONE LINE in MySQL event though I have multiple lines!
How do I do to save my line brakes too?
I don't want to use any </b> tags or other HTML thags.
thanks!
The problem is that my text is saved ALL IN ONE LINE in MySQL event though I have multiple lines!
How do I do to save my line brakes too?
I don't want to use any </b> tags or other HTML thags.
thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can also use another function (although not as nice)
str_replace(Chr(13),'<br>', $var);
ASKER