Re: Sanitizing potential MySQL strings with no database connection
| From: | Kim Madsen | Date: | Tue, 20 Oct 2009 18:10:07 +0000 |
| Subject: | Re: Sanitizing potential MySQL strings with no database connection | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299115@lists.php.net to get a copy of this message | ||
Dotan Cohen wrote on 2009-10-20 20:06:
if(@mysql_real_escape_string($variable) === false) Well? -- Kind regards Kim Emax - masterminds.dkif(mysql_real_escape_string($variable) === false) {Here, the key seems to be to turn the warning level down, which I do not have privileges to do on this server. But it fact this seems to be the key that I was missing, and even though I cannot make use of it at least I know in general what needs to be done.// create a default DB connection}