Below is my code. When I run this, the data for $row[coach] is one long parahraph unless I enter <br> or <p></p> in the database itself. Is there a way to breakup the paragraphs at run time instead of putting it in the database for each entry?
$db = mysql_connect("xxx", "xxx", "xxx");
mysql_select_db("xxx",$db);
$result = mysql_query("SELECT * FROM coaching where (title = '$TitleList')",$db);
if ($row = mysql_fetch_array($result)) {
do {
echo (" <table border=0 width=75% align=center>
<tr>
<td class=coachtitle>$row[title]</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td class=coach>nl2br($row[coach])</td>
</tr>
<tr>
<td class=author>$row[author]</td>
</tr>
<tr>
<td align=center><a href=/coaching.html>Back</a></td>
</tr>
");
} while ($myrow = mysql_fetch_array($result));
echo ("</table>");