me102 Posted December 25, 2007 Share Posted December 25, 2007 When I submit data to mysql from a textarea it does not add the line breaks and what not. textarea Blah blah Some details down here. Mysql input looks like Blah blah Some details down here. Mysql input should look like, Blah blah Some details down here. Quote Link to comment https://forums.phpfreaks.com/topic/83119-textarea-to-mysql/ Share on other sites More sharing options...
PHP_PhREEEk Posted December 25, 2007 Share Posted December 25, 2007 Use nl2br when pulling the data out... PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/83119-textarea-to-mysql/#findComment-422797 Share on other sites More sharing options...
redarrow Posted December 25, 2007 Share Posted December 25, 2007 yep dont use nl2br for submitting info in the database or it will add <br><br> only advising u ok mate so u no. Quote Link to comment https://forums.phpfreaks.com/topic/83119-textarea-to-mysql/#findComment-422810 Share on other sites More sharing options...
me102 Posted December 25, 2007 Author Share Posted December 25, 2007 Anything else I should do? Only the last 3 lines break. Quote Link to comment https://forums.phpfreaks.com/topic/83119-textarea-to-mysql/#findComment-422813 Share on other sites More sharing options...
redarrow Posted December 25, 2007 Share Posted December 25, 2007 formating php text to reduce letters or words.... http://uk.php.net/substr to show a brake nl2br http://uk3.php.net/nl2br to add a brake at postion or new line http://uk3.php.net/manual/en/function.wordwrap.php all you need mate to format text Quote Link to comment https://forums.phpfreaks.com/topic/83119-textarea-to-mysql/#findComment-422817 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.