Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.0

Bug #1234 Error in mysqli's escapeSimple
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)    

 [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.


 [2004-04-17 19:35 UTC] danielc
Fixed this, and other mysqli*() function argument orders, and uploaded it to CVS. Thanks!