OSDN Git Service

Add some codes from 3.61. Currently files under /nucleus/libs and /nucleus/libs/sql...
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / libs / mysql.php
index 2b0d4dc..abbdb1b 100644 (file)
@@ -115,8 +115,11 @@ if (!function_exists('mysql_query'))
                global $MYSQL_CONN;
                return mysqli_affected_rows($MYSQL_CONN);
        }
-}
-
-
 
+       function mysql_real_escape_string($val)
+       {
+               global $MYSQL_CONN;
+               return mysqli_real_escape_string($MYSQL_CONN,$val);
+       }
+}
 ?>
\ No newline at end of file