Re: Automatically Escape?
| From: | Richard Davey | Date: | Tue, 16 Nov 2004 12:33:15 +0000 |
| Subject: | Re: Automatically Escape? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202128@lists.php.net to get a copy of this message | ||
Hello GH,
Tuesday, November 16, 2004, 12:25:20 PM, you wrote:
G> Is there a function that can automatically escape special characters
G> before putting them into mySQL?
See magic_quotes to have it done for you. Although this isn't a
recommend approach if you plan to distribute your application, in
which case mysql_escape_string() is the one.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde