On Jun 21, 2003, "John W. Holmes" claimed that: |Artoo wrote: |> Is it better to use that function before the INSERT query and save it to the |> database like that or use that nl2br() function while displaying the results |> of the SELECT query, | |Use it while displaying. You generally want to save the data in the |database exactly as it was entered. This will allow you to display it |back to the user for editing without them wondering what all the <br /> |are in their sentences and also use it in other places, like mail or |files... |
I believe, that alternatively, you can wrap the output within <pre></pre> tags for the html out. Jeff -- Registered Linux user #304026. "lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import" Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED Responses to this message should conform to RFC 1855. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php