Retaining line breaks when data comes back out of mysql?
I have a project I am working on and I have data saved in my database that has line breaks retained. My problem is that when I go through and pull the row of data from my database and put the cells into a $variable I no longer have the line breaks....
As an example:
$name=$row[name];
$seasons=$row[seasons];
Assuming that $seasons is a list of seasons with line breaks or white space to format the output... what command do I need so that the output will retain line breaks?
Thanks!
|