note 85760 rejected from function.mysql-real-escape-string by danbrown
| From: | danbrown@php.net | Date: | Tue, 16 Sep 2008 17:55:08 +0000 |
| Subject: | note 85760 rejected from function.mysql-real-escape-string by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144454@lists.php.net to get a copy of this message | ||
Note Submitter: Benjam
----
@Dave
>Your specification of parameters appears to be reversed; in
>my install of PHP 5.2.3, link_identifier comes before
>unescaped_string:
>
>mysqli_real_escape_string($link, "Unescaped string");
You have given an example with the wrong function, the mysqli_real_escape_string procedural function
does have the arguments reversed, but this page is not for the mysqli_real_escape_string function,
but the mysql_real_escape_string function (subtle difference in name (note the i at the end of
mysqli_), totally different function), in which the given argument order is correct.