Link to home
Start Free TrialLog in
Avatar of Gagik
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!
ASKER CERTIFIED SOLUTION
Avatar of dr_dedo
dr_dedo
Flag of Egypt image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Gagik
Gagik

ASKER

Awesome! thanks a lot!!!
You can also use another function (although not as nice)
str_replace(Chr(13),'<br>', $var); 

Open in new window