note 102459 deleted from function.mysql-real-escape-string by danbrown
[email protected] Wed, 16 Feb 2011 05:55:27 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Note Submitter: Sasho
----
I had a problem that mysql_real_escape_string returned empty string
This worked for me.
function mysql_fix($str)
{
include 'db.php';
return mysql_real_escape_string(stripslashes($str), $conn);
}