Bug #3184 [Opn->Csd]: Typo in sample code in PEAR::DB_DataObject

From: Date: Fri, 14 Jan 2005 07:55:54 +0000
Subject: Bug #3184 [Opn->Csd]: Typo in sample code in PEAR::DB_DataObject
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5432@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=3184&edit=1 ID: 3184 Updated by: alan@akbkhome.com Reported By: larry at garfieldtech dot com -Status: Open +Status: Closed Type: Bug Package: Documentation Operating System: Linux PHP Version: Irrelevant New Comment: This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Previous Comments: ------------------------------------------------------------------------ [2005-01-13 02:24:00] larry at garfieldtech dot com Description: ------------ On page: http://pear.php.net/manual/en/package.database.db-dataobject.db-dataobject.limit.php the sample code at the bottom of the page includes this block: while ($person->fetch()) { echo "$person->id} {$person->name}<BR>"; } That is a typo. The line should read: echo "{$person->id} {$person->name}<BR>"; (Note the extra { before $person). ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=3184&edit=1

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