Retrieving tabs and newlines from MySQL tables

admin

Administrator
Staff member
I am outputing data from MySQL to an HTML page but tabs and newline characters aren't showing up. To make them show up, do I use substr() and a loop to go through the data and then store it in a string but stick in a tab or newline whenever I come across a \t or \n? Or is there a better way to do this?
 
Back
Top