gathos Posted December 9, 2008 Share Posted December 9, 2008 ok so i have a page to add inputs into a database like description, it's a textfield, so i can type description like this: blah blah blah blah blah but when i echo it i get: blah blah blah blah blah how can i get it so that i get to display the same way i entered it? ie: blah blah blah blah blah later days gathos Link to comment https://forums.phpfreaks.com/topic/136272-solved-how-do-i-output-text-from-a-database-the-same-way-it-was-entered/ Share on other sites More sharing options...
akitchin Posted December 9, 2008 Share Posted December 9, 2008 look into using nl2br() when you are outputting the database content to the browser. Link to comment https://forums.phpfreaks.com/topic/136272-solved-how-do-i-output-text-from-a-database-the-same-way-it-was-entered/#findComment-710912 Share on other sites More sharing options...
gathos Posted December 9, 2008 Author Share Posted December 9, 2008 that's awsome i've been looking for something like this for a while, thank you. Link to comment https://forums.phpfreaks.com/topic/136272-solved-how-do-i-output-text-from-a-database-the-same-way-it-was-entered/#findComment-710922 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.