Re: need apostrophe solution
| From: | Doug Parker | Date: | Sat, 15 Feb 2003 19:54:29 +0000 |
| Subject: | Re: need apostrophe solution | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135695@lists.php.net to get a copy of this message | ||
OK - thanks. I saw that the magic_quotes_gpc is turned off by default, so I did a ini_set(magic_quotes_gpc, 1) to turn it on temporarily. I ran a get_magic_quotes_gpc() and saw that the ini_set did work, but for some reason the query still won't accept the quotes. What am i doing wrong?
thanks again, doug
Chris Shiflett wrote:
--- drparker <drparker@camden.rutgers.edu> wrote:i need to escape all my apostrophes in values submitted to a mySQL database.http://www.php.net/manual/en/function.addslashes.phpis there a way i can loop thru all the post variables and replace the apostrophes?Read about the magic_quotes setting in your php.ini. Chris