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. 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 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. 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. 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 Link to comment https://forums.phpfreaks.com/topic/83119-textarea-to-mysql/#findComment-422817 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.