mysql and linebreaks
Posted: Thu Oct 27, 2005 9:38 am
I am getting problems with trying to use the function str_replace with data from a mysql database.
here is the following code:
the $row['maps_desc'] is data directly taken from the database and is a TEXT type (taken from texarea)
here is the following code:
Code: Select all
$desc = str_replace ('%0D', '<br>', $row['maps_desc'] );