#1245 [NEW]: Typo in Example 22-2
| From: | tobias dot nix at web dot de | Date: | Tue, 20 Apr 2004 13:04:00 +0000 |
| Subject: | #1245 [NEW]: Typo in Example 22-2 | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-3660@lists.php.net to get a copy of this message | ||
From: tobias dot nix at web dot de
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: Documentation
Bug description: Typo in Example 22-2
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);
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=1245&edit=1
--