busnut Posted April 25, 2009 Share Posted April 25, 2009 I've got a field with information and each time its added, it adds a new line by placing \n to the information thats being recorded in the database, however, what im wanting to know is, how can i display this info without using a <textarea> so the information will be on each line? ie, the field has info like this : abc 123\n def 456\n ghi 987\n and i want the output like this: abc 123 def 456 ghi 987 but all i can get is: abc 123 def 456 ghi 987 Link to comment https://forums.phpfreaks.com/topic/155599-solved-seperate-n-into/ Share on other sites More sharing options...
Mchl Posted April 25, 2009 Share Posted April 25, 2009 nl2br Link to comment https://forums.phpfreaks.com/topic/155599-solved-seperate-n-into/#findComment-818915 Share on other sites More sharing options...
busnut Posted April 25, 2009 Author Share Posted April 25, 2009 nl2br Thankyou. I tried all types of searches and nothing came close! Thankyou - much appreciated Link to comment https://forums.phpfreaks.com/topic/155599-solved-seperate-n-into/#findComment-818918 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.