note 19283 deleted from function.mysql-escape-string by alindeman
| From: | alindeman@php.net | Date: | Thu, 21 Feb 2002 22:41:20 +0000 |
| Subject: | note 19283 deleted from function.mysql-escape-string by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-26913@lists.php.net to get a copy of this message | ||
As far as i know, there is no function to escape SQL wildchar (% and _).
Here is one :
function mysql_escapewildchar($str)
{
return addcslashes($str, '%_');
}
If there IS one function to do that, let me know !