Re: Re: saving TEXTAREA data into mysql database

From: Date: Sat, 21 Jun 2003 20:49:36 +0000
Subject: Re: Re: saving TEXTAREA data into mysql database
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152406@lists.php.net to get a copy of this message
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.

« previous php.general (#152406) next »