Home » Bug #1245
Typo in Example 22-2
Details
| 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) |
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);