diff --git a/reference/mysql/functions/mysql-real-escape-string.xml b/reference/mysql/functions/mysql-real-escape-string.xml index a117a9db24..50fada2d39 100644 --- a/reference/mysql/functions/mysql-real-escape-string.xml +++ b/reference/mysql/functions/mysql-real-escape-string.xml @@ -1,5 +1,5 @@ - + @@ -88,7 +88,7 @@ mysql_query($query); // We didn't check $_POST['password'], it could be anything the user wanted! For example: $_POST['username'] = 'aidan'; -$_POST['password'] = "' OR ''='"; +$_POST['password'] = "' OR 1=1"; // This means the query sent to MySQL would be: echo $query;