Re: MDB2 doc confusion
| From: | Lukas Kahwe Smith | Date: | Thu, 31 Aug 2006 15:24:05 +0000 |
| Subject: | Re: MDB2 doc confusion | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25028@lists.php.net to get a copy of this message | ||
Martin Marques wrote:
I passing from DB to MDB2, and there are somethings with which I'm a bit confussed. In PEAR::DB I used the getOne() method, which in the docs say it's defined in the MDB2_Extended module. Now, reading the code MDB2.php I found methods like queryOne() which does what I want (run the query and return the first element of the first row), but it's not documented.Not documented? Both are documented on the same page: http://pear.php.net/manual/en/package.database.mdb2.intro-fetch.php They are also both in the API docs.
Should I use queryOne() or try the Extended module?If you are not using placeholders then you should use queryOne(). regards, Lukas