Home » Bug #3184
Typo in sample code in PEAR::DB_DataObject
Details
| Submitted | 2005-01-13 07:24 UTC |
|---|---|
| From | larry at garfieldtech dot com |
| Assigned | alan_k |
| Status | Closed |
| Package | Documentation |
| PHP Version | Irrelevant |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-01-13 07:24 UTC] 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).