Report new bug | New search | Development Roadmap Status: Open | Feedback | All

Bug #1245 Typo in Example 22-2
Submitted: 2004-04-20 13:04 UTC
From: tobias dot nix at web dot de Assigned: danielc
Status: Closed Package: Documentation
PHP Version: Irrelevant OS: Irrelevant
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 : 26 - 6 = ?

 
 [2004-04-20 13:04 UTC] tobias dot nix at web dot de
Description: ------------ There is a typo in example 22-2 (Passing an array to execute()) original: $sth = $db->prepare('INSERT INTO numbers VALUES (?, ?, ?)'); $data = array(1, 'one', 'en'); $db->execute($sth, $row); the variable $data should be $row: $row = array(1, 'one', 'en'); $db->execute($sth, $row);

Comments

 [2004-04-20 13:31 UTC] danielc
Fixed in CVS. Thanks!