I know this has been addressed a thousand times probably but I haven't been able to figure this one out or find the forum posting with the info I need. As you might suspect I'm completely new to PHP...
Running PHP with MySQL on Apache and FreeBSD. I have a table with a field called "Body" which displays the text body of press releases. In the database field, the text is entered with paragraph breaks by using simple cut and paste through the MySQLFront program. Field type is longtext.
Where do I insert the nl2br() string in the actual php page that displays on the web so that it will format the text with the paragraph tag. The field is being displayed through this query on the webpage:
<?php echo $Recordset1->Fields("Body")?>
As I stated, I'm completely new to this. Don't know where this string, nl2br(), should go.
I also tried:
<?php
$Body = eregi_replace('<BR>', "\n", $Body);
?>
in the header of the page with no success. Again I don't know if the implementation was correct.
Thanks for any help
Charles.