#1211 [NEW]: Site docs for Db:tableInfo error
| From: | js at nexista dot com | Date: | Wed, 14 Apr 2004 18:20:28 +0000 |
| Subject: | #1211 [NEW]: Site docs for Db:tableInfo error | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-3458@lists.php.net to get a copy of this message | ||
From: js at nexista dot com
Operating system:
PHP version: Irrelevant
PHP Bug Type: Documentation
Bug description: Site docs for Db:tableInfo error
Description:
------------
The docs for Db::tableInfo may be wrong. On page:
http://pear.php.net/manual/en/package.database.db.intro-fetch.php
at the very bottom example we have:
// Once you have a valid DB object named $db...
$res =& $db->query('SELECT * FROM phptest');
print_r($db->tableInfo($res));
however this does not work. You can pass a table name or call
tableInfo as a method of result object but this above returned
nothing on Mysql. This did:
print_r($res->tableInfo());
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=1211&edit=1
--