Re: need apostrophe solution
| From: | Chris Shiflett | Date: | Fri, 14 Feb 2003 20:47:03 +0000 |
| Subject: | Re: need apostrophe solution | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135602@lists.php.net to get a copy of this message | ||
--- 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.php
> is 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