note 97661 deleted from mysqli.real-escape-string by danbrown
| From: | danbrown@php.net | Date: | Sat, 01 May 2010 15:28:16 +0000 |
| Subject: | note 97661 deleted from mysqli.real-escape-string by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168840@lists.php.net to get a copy of this message | ||
Note Submitter: K B
----
Why is it that a connection to a MySQL database is required in order to successfully evaluate the
escape? We don't tell the function what collation or character set we're actively using
so it doesn't make sense to me that this function can't be statically called apart from
the connection (i.e. $result = mysqli::real_escape_string($_POST['search']) ;)