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

Bug #1234 Error in mysqli's escapeSimple
Submitted: 2004-04-17 14:09 UTC Modified: 2004-04-17 14:35 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)    
Subscription  


 [2004-04-17 14: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.

Comments

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