Manish
06-13-2007, 02:54 PM
Hi, I am just learning new programming languages and creating a website, not for a company just for my learning but i am stuck in a silly thing. I am using PHP and MySQL. And in HTML i am using TEXTAREA to write huge text. Basically if I write something like this:
This is first line,
This is second line.
When I store the above in MySQL database using TEXT datatype, and try to read it, it comes like this:
This is first line.This is second line.
They don't seem to come in separate lines.
Can you please tell me where the problem is.
Thankyou.
Oh, by the way this is the website i have created, still under construction:
http://www.sentosajaipur.com
But how can a user on my website will put <BR>, in yahoo answer if i press enter, it comes in a new line, so don't know how to do that.
as per what FlpcNerds.com is saying, i know <BR> is for breaking the line, but i know this and people who don't know computers, how can they put <BR> code when writing something in different lines.
This is first line,
This is second line.
When I store the above in MySQL database using TEXT datatype, and try to read it, it comes like this:
This is first line.This is second line.
They don't seem to come in separate lines.
Can you please tell me where the problem is.
Thankyou.
Oh, by the way this is the website i have created, still under construction:
http://www.sentosajaipur.com
But how can a user on my website will put <BR>, in yahoo answer if i press enter, it comes in a new line, so don't know how to do that.
as per what FlpcNerds.com is saying, i know <BR> is for breaking the line, but i know this and people who don't know computers, how can they put <BR> code when writing something in different lines.