Doc #9786 [Opn]: Missing a {

From: Date: Tue, 09 Jan 2007 16:29:14 +0000
Subject: Doc #9786 [Opn]: Missing a {
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9263@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=9786&edit=1 ID: 9786 User updated by: o at homedev dot org Reported By: o at homedev dot org Status: Open Type: Documentation Problem Package: Documentation Operating System: Linux PHP Version: 5.1.0 New Comment: http://pear.php.net/manual/en/package.database.db-dataobject.db-dataobject.find.php Previous Comments: ------------------------------------------------------------------------ [2007-01-09 11:27:41] o at homedev dot org Description: ------------ there is an error in the doc at the bottom. <?php $person = new DataObjects_Person; $person->whereAdd('age > 12'); $person->whereAdd('age < 30'); $person->find(); while ($person->fetch()) { echo "$person->id} {$person->name}<BR>"; } $person = new DataObjects_Person; $person->whereAdd('age < 12'); $person->whereAdd('age > 30', 'OR'); $person->find(); while ($person->fetch()) { echo "$person->id} {$person->name}<BR>"; } Test script: --------------- If should be while ($person->fetch()) { echo "{$person->id} {$person->name}<BR>"; } NOTE the Extra { before {$person ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=9786&edit=1

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