note 78605 deleted from function.mysql-real-escape-string by nlopess
| From: | nlopess@php.net | Date: | Fri, 19 Oct 2007 18:58:36 +0000 |
| Subject: | note 78605 deleted from function.mysql-real-escape-string by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-131566@lists.php.net to get a copy of this message | ||
Note Submitter: ercbluemonday at yahoo dot com
----
how about
function quotes($string)
{
if (!get_magic_quotes_gpc())
{
return addslashes(stripslashes($string));
}
else
{
return $string;
}
}