I have a script that collects data from a user then inserts it into MySQL.
One of the fields collected is a textarea that's inserted into a longtext-field.
This works just fine, my problem is that users aren't very good at inserting break-tags, and
I need the data collected to be somewhat easily read, how can I get the break-tags inserted
automatically for each new-line the user enters?
Thanx
Rincewind_the_Wizzard
New-line without break-tags
Moderator: General Moderators
-
DynamiteHost
- Forum Commoner
- Posts: 69
- Joined: Sat Aug 10, 2002 5:33 pm
Code: Select all
$new = nl2br($old);