note 29866 deleted from function.addslashes by betz
| From: | betz@php.net | Date: | Sat, 01 Mar 2003 10:26:43 +0000 |
| Subject: | note 29866 deleted from function.addslashes by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-44690@lists.php.net to get a copy of this message | ||
u forgot the ! in the deslash function :
function reslash($string)
{
if (!get_magic_quotes_gpc())
$string = addslashes($string);
return $string;
}
function deslash($string)
{
if (!get_magic_quotes_gpc())
$string = stripslashes($string);
return $string;
}
Very handfull functions btw :)
It's odd coze with magic_quotes_gpc = Off and thoses functions, entries in database aren't
"slashed" but queries are..