summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDyd980 <59699048+Dyd980@users.noreply.github.com>2020-01-09 16:28:57 +0100
committerGitHub <noreply@github.com>2020-01-09 16:28:57 +0100
commit73bd850339265f4a359a54c0ea0bd8c0eb685969 (patch)
tree169a63499a6c1c6d16d456f3f3ef7df42ff64abf
parentaa9df807e9ae4d3882727dceb753c84532422e0f (diff)
downloadphp-mysql-mysqli-wrapper-73bd850339265f4a359a54c0ea0bd8c0eb685969.zip
php-mysql-mysqli-wrapper-73bd850339265f4a359a54c0ea0bd8c0eb685969.tar.gz
php-mysql-mysqli-wrapper-73bd850339265f4a359a54c0ea0bd8c0eb685969.tar.bz2
Add mysql_escape_string() function
-rw-r--r--mysql.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/mysql.php b/mysql.php
index 0ef2ebc..b15553c 100644
--- a/mysql.php
+++ b/mysql.php
@@ -110,7 +110,15 @@ if (!extension_loaded('mysql') && !function_exists('mysql_connect')) {
{
return getLinkIdentifier($mysqli)->escape_string($string);
}
-
+
+ /**
+ * @param $string
+ * @return string
+ */
+ function mysql_escape_string($string)
+ {
+ return mysql_real_escape_string($string);
+ }
/**
* @param mysqli_result $result
* @return bool|array