#1245 [Opn->Csd]: Typo in Example 22-2

From: Date: Tue, 20 Apr 2004 13:31:07 +0000
Subject: #1245 [Opn->Csd]: Typo in Example 22-2
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-3663@lists.php.net to get a copy of this message
ID: 1245 Updated by: danielc@analysisandsolutions.com Reported By: tobias dot nix at web dot de -Status: Open +Status: Closed Bug Type: Documentation Operating System: Irrelevant PHP Version: Irrelevant -Assigned To: +Assigned To: danielc New Comment: Fixed in CVS. Thanks! Previous Comments: ------------------------------------------------------------------------ [2004-04-20 09:04:00] 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); ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=1245&edit=1

« previous php.pear.doc (#3663) next »