> From: Andy [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 2:45 PM
> Hi there, > > I am putting text into a mysql db from a form field. I do include the > linebrakes with line2br. > > Now I would like to create an interface where I could load > the text into the > form again to edit it. Unfortunatelly it includes some wired > chars like \br > into the text. How can I get rid of that? When did you use nl2br() (which I assume you mean)? Before you store the the data in the database or when you retrive it? If before then use echo str_replace("<br />", "\n", $your_string) If when you retrieve the data for output to the form, then just don't use nl2br(). Regards Joakim Andersson > > Thanx for any help, > > Andy -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php