PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Bug #1245

Typo in Example 22-2

Details

Submitted2004-04-20 13:04 UTC
Fromtobias dot nix at web dot de
Assigneddanielc
StatusClosed
PackageDocumentation
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[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);