Re: getAll() and DB_FETCHMODE_FLIPPED
| From: | Tomas V.V.Cox | Date: | Tue, 17 Jul 2001 17:18:15 +0000 |
| Subject: | Re: getAll() and DB_FETCHMODE_FLIPPED | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-206@lists.php.net to get a copy of this message | ||
Graeme Merrall wrote:
>
> This is using oci8 so that may be the problem...
> Has anyone got an example of this in action or an idea of the functionality?
>
> I'm having a bit of trouble piecing together what the function does.
>
Have you tried this:
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$db = DB::connect($dsn);
$sql = "select * from table";
$all = $db->getAll($sql);
print_r($all);
$all2 = $db->getAll($sql, DB_FETCHMODE_FLIPED);
print_r($all2);
?
Tomas V.V.Cox