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

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)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 21 - 14 = ?

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

Comments

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