Thanks Alpha, I also found this link with a function to do the job but I count figure out how to use it. I tried the following but it didn't work. I'm sure that I'm doing something wrong,
<?php
$goatswiththe=$_GET['goatswiththe'];
mysql_connect("mysql2.steadfast.net","goatswi_leo","PASSWORD") or die(mysql_error());
mysql_select_db("goatswi_db") or die(mysql_error());
$result = mysql_query("SELECT * FROM goattext_eng") or die(mysql_error());
$row = mysql_fetch_array( $result );$goattext = $row[$goatswiththe];
function nl2p($goattext)
{
$goattext = "<p>" . $goattext . "</p>";
$goattext = str_replace("\r\n\r\n", "</p><p>", $goattext);
$goattext = str_replace("\r\n", "<br />", $goattext);
$goattext = str_replace("</p><p>", "</p>\n<p>", $goattext);
$goattext = str_replace("\r", '', $goattext);
$goattext = str_replace("<p></p>", '', $goattext);
return $goattext;
}
echo $goattext;
?>
Peace,
Leao