PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello,
I am saving data from a textarea field into a database. When I view the data in the mysql table, the spaces and formatting is retained, but when I try to print it out on a page, it just prints the info out as a continuous wrapped string w/ no formatting.
What can I do to retain the spaces and carriage returns?
I think he means when you outputs the html the spaces don't show up? Which of course doesn't mean that the spaces aren't there, they just aren't showing up in the outputted html.