Re: Separators in variable values causing MySQL commands to fail
| From: | David Otton | Date: | Sat, 22 Mar 2003 17:58:59 +0000 |
| Subject: | Re: Separators in variable values causing MySQL commands to fail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140698@lists.php.net to get a copy of this message | ||
On Sat, 22 Mar 2003 17:50:30 +0000, you wrote:
>OK, I can bypass my oversight by stripping out apostophes from the
>variable values. There has to be a better way please.
http://www.php.net/manual/en/function.mysql-escape-string.php