Forum Moderators: coopster
This works nicely:
$longdescription = mysql_result($sql,$i,"longdescription");
$longdescription = nl2br($longdescription);
However, what I would like to do is split the new line and explode it into an array. Perhaps I am missing something.
psudo code
$string = "my feild that includes line breaks";
$pieces = explode("nl2br($string);", $string);
some sort of loop
echo $pieces[0];
print "<hr>";
echo $pieces[1];
Cheers for any advice