Bug #7703 [Opn->Csd]: Document mistake in MDB2

From: Date: Tue, 23 May 2006 06:18:44 +0000
Subject: Bug #7703 [Opn->Csd]: Document mistake in MDB2
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7944@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=7703&edit=1 ID: 7703 Updated by: lsmith@php.net Reported By: mikespook at gmail dot com -Status: Open +Status: Closed Id: 7703 Type: Bug Package: Documentation Operating System: Windows PHP Version: 5.1.4 New Comment: This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Previous Comments: ------------------------------------------------------------------------ [2006-05-23 00:21:40] mikespook at gmail dot com Description: ------------ <?php // Once you have a valid MDB2 object named $mdb2... $sql = "INSERT INTO clients (name, address) VALUES ($name, ?address)"; $data = 53; $affected =& $mdb2->exec($sql); // Always check that result is not an error if (PEAR::isError($res)) { die($affected->getMessage()); } ?> "if (PEAR::isError($res)) {" the $res is not a valid var. Actual result: -------------- should be <?php // Once you have a valid MDB2 object named $mdb2... $sql = "INSERT INTO clients (name, address) VALUES ($name, ?address)"; $data = 53; $affected =& $mdb2->exec($sql); // Always check that result is not an error if (PEAR::isError($affected)) { die($affected->getMessage()); } ?> ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=7703&edit=1

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