|
-
Feb 17th, 2008, 07:37 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Save text with multi line
I want to save an text from a textarea control as MYSQL data.
But it doesn't save that text as a multi line text.
It always remove line breaks on text when it saves.
How can I save the text as a multi line text?
If above question or answer will help to you
Don't forget to rate me
தமிழ்இன்பன்
-
Feb 17th, 2008, 10:24 AM
#2
Re: Save text with multi line
There is no reason why the line feeds would be stripped out. Can you post your code?
-
Feb 17th, 2008, 11:30 AM
#3
-
Feb 19th, 2008, 12:12 PM
#4
Thread Starter
Addicted Member
Re: Save text with multi line
Ya, you are right manavo11!
replacing \n as <br> is working
Thank you for your help
If above question or answer will help to you
Don't forget to rate me
தமிழ்இன்பன்
-
Feb 20th, 2008, 12:45 AM
#5
Re: Save text with multi line
Send debugging output as plain text to avoid this confusion.
PHP Code:
header('Content-type: text/plain');
-
Feb 20th, 2008, 04:31 AM
#6
Re: Save text with multi line
Or click view source
-
Feb 20th, 2008, 07:43 AM
#7
Thread Starter
Addicted Member
Re: Save text with multi line
If above question or answer will help to you
Don't forget to rate me
தமிழ்இன்பன்
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|