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  


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