For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > August 2006 > MDB2 doc confusion









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author MDB2 doc confusion
Martin Marques

2006-08-31, 6:58 pm

Lukas Kahwe Smith

2006-08-31, 6:58 pm

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/packa...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
Martin Marques

2006-08-31, 6:58 pm

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com