php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55757
Patch mysqli_real_escape_string revision 2011-09-21 15:01 UTC by theanomaly dot is at gmail dot com

Patch mysqli_real_escape_string for Documentation problem Bug #55757

Patch version 2011-09-21 15:01 UTC

Return to Bug #55757 | Download this patch
Patch Revisions:

Developer: theanomaly.is@gmail.com

--- real-escape-string.xml	2010-06-02 15:04:30.000000000 -0400
+++ real-escape-string.xml.new	2011-09-21 08:06:00.000000000 -0400
@@ -137,6 +137,18 @@
   </example>
  </refsect1>

+ <refsect1 role="notes">
+  &reftitle.notes;
+  <note>
+   <para>
+    If you're used to using <function>mysql_real_escape_string</function> function it's important to
+    note that the arguments of <function>mysqli_real_escape_string</function> are backwards from what
+    mysql_real_escape_string expects. Since the link identifier comes first in mysqli_real_escape_string
+    whereas the string comes first in mysql_real_escape_string.
+   </para>
+  </note>
+ </refsect1>
+
  <refsect1 role="seealso">
   &reftitle.seealso;
   <para>
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Nov 10 02:00:01 2025 UTC