Home » Database » DB » Bug #1234
Error in mysqli's escapeSimple
Details
| Submitted | 2004-04-17 19:09 UTC |
|---|---|
| From | abielr at myrealbox dot com |
| Assigned | danielc |
| Status | Closed |
| Package | DB |
| PHP Version | 5.0.0b4 (beta4) |
| OS | Windows XP |
| Roadmaps | (Not assigned) |
Comments
[2004-04-17 19:09 UTC] abielr at myrealbox dot com
Description:
------------
In DB 1.6.2 the mysqli escapeSimple() function has an error in its call to mysqli_real_escape_string().
The current code in DB/mysqli.php reads:
@mysqli_real_escape_string($str, $this->connection);
This should be changed to:
@mysqli_real_escape_string($this->connection, $str);
This issue resolves the problem of being unable to use strings in prepared statements where a placeholder is being replaced by the string in the execute() call.