Re: Quotes in db fields
| From: | Miles Thompson | Date: | Sat, 19 Jan 2002 02:19:22 +0000 |
| Subject: | Re: Quotes in db fields | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15982@lists.php.net to get a copy of this message | ||
Addslashes on insert, stripslashes on output.
Miles
At 11:26 AM 1/18/2002 -0600, Faye Keesic wrote:
Hi there.. Just wondered why some of my db fields are getting chopped wherever an occurrence of a quote (") is. I used the stripslashes() function before saving them. would this be why? Do quotes need slashes in front of them when stored/being written in the db? Maybe I should use stripslashes only when I am outputting the fields to the web pages.... Note: I started to use stripslashes because I was getting many slashes in front of any quotes.... the number of slashes doubled each time the form was previewed... -- Faye Keesic Computer Programmer Analyst/Web Page Design -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net