Re: WIERD: odbc_fetch_row return value backwards?
| From: | Andreas Karajannis | Date: | Thu, 31 Aug 2000 07:14:03 +0000 |
| Subject: | Re: WIERD: odbc_fetch_row return value backwards? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-2511@lists.php.net to get a copy of this message | ||
Tyson Lloyd Thwaites wrote:
>
> Hi all,
>
> Is this broken?
>
> if (odbc_fetch_row($qry, $row)==true) {
> return odbc_result($qry, $fld);
> } else {
> return "err";
> }
>
It seems your odbc driver only supports forward cursors,
odbc_fetch_row() detects this and ignores the $row parameter.
Same applies to refetching rows / scrolling backwards. Workaround would
be to use a odbc cursor library (is supplied under Win* with the
drivermanager) or implementing it in PHP.
-Andreas
--
Andreas Karajannis
GMD National Research Center for Information Technology
Schloss Birlinghoven, D-53754 Sankt Augustin
Phone +49 2241 142948