Re: Using mysql_real_escape_string without connecting to mysql
| From: | mike | Date: | Wed, 23 Jan 2008 22:22:06 +0000 |
| Subject: | Re: Using mysql_real_escape_string without connecting to mysql | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267952@lists.php.net to get a copy of this message | ||
On 1/23/08, Chris <dmagick@gmail.com> wrote:
> If you need to escape something you're going to do a query aren't you?
> Or am I missing something here?
true. but i typically have everything in wrapper functions, and i
don't keep the actual resource variable exposed to use it (since it
needs a resource)
would be great just to have a string escape with charset, or just pass
it the charset and not the db connection handle.