Doc #9897 [NEW]: Example 34-4 comments wrong variable
| From: | graeme at ijws dot com | Date: | Sun, 21 Jan 2007 16:59:56 +0000 |
| Subject: | Doc #9897 [NEW]: Example 34-4 comments wrong variable | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9332@lists.php.net to get a copy of this message | ||
From: graeme at ijws dot com
Operating system:
Package version:
PHP version: Irrelevant
Package: Documentation
Bug Type: Documentation Problem
Bug description: Example 34-4 comments wrong variable
Description:
------------
"Example 34-4. Fetching by number" code in the current online user
documentation as of 2007-01-21 has the following comment and code that do
not match (and may confuse newcomers):
// Once you have a valid MDB2 object named $mdb2...
if (!($row = $res->fetchRow(MDB2_FETCHMODE_ORDERED, $rowNum))) {
Test script:
---------------
// Either $mdb2 in the comment or $res in the code should be changed so
they match
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=9897&edit=1
--