Re: ODBC
| From: | Graeme Merrall | Date: | Mon, 29 Jan 2001 22:48:25 +0000 |
| Subject: | Re: ODBC | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-1209@lists.php.net to get a copy of this message | ||
Quoting Christian Rishøj <chrris@mail.dk>:
> Hi.
>
> I noticed that DB_FETCHMODE_ASSOC is emulated in the ODBC module:
>
> } else if ($fetchmode == DB_FETCHMODE_ASSOC) {
> for ($i = 0; $i < count($row); $i++) {
> $colName = odbc_field_name($result, $i+1);
> $a[$colName] = $row[$i];
>
> However, odbc_fetch_assoc() is mentioned as a prototype in
> http://zend.com/phpfunc/function.odbc_fetch_array.php, but does
> not seem
> to
> be implemented yet.
>
odbc_fetch_array() is kind implemented in the PHP ODBC module but only if you
have DBMaker installed. Not sure why that is though.
Cheers,
Graeme