Date: 08/31/00
- Next message: Andreas Karajannis: "Re: [PHP-DB] problem using odbc_fetch_row to count rows"
- Previous message: Andreas Karajannis: "Re: [PHP-DB] WIERD: odbc_fetch_row return value backwards?"
- In reply to: Andreas Karajannis: "Re: [PHP-DB] WIERD: odbc_fetch_row return value backwards?"
- Next in thread: Andreas Karajannis: "Re: [PHP-DB] WIERD: odbc_fetch_row return value backwards?"
- Reply: Andreas Karajannis: "Re: [PHP-DB] WIERD: odbc_fetch_row return value backwards?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Aha, thanks.
Questions:
1/ A bit confused as to what Win* is
2/ How would I implement going backwards in PHP if the driver does
not support it?
Cheers
----- Original Message -----
From: Andreas Karajannis <Andreas.Karajannis <email protected>>
To: Tyson Lloyd Thwaites <tysonlt <email protected>>
Cc: <php-db <email protected>>
Sent: Thursday, August 31, 2000 4:44 PM
Subject: Re: [PHP-DB] WIERD: odbc_fetch_row return value backwards?
> 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
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Andreas Karajannis: "Re: [PHP-DB] problem using odbc_fetch_row to count rows"
- Previous message: Andreas Karajannis: "Re: [PHP-DB] WIERD: odbc_fetch_row return value backwards?"
- In reply to: Andreas Karajannis: "Re: [PHP-DB] WIERD: odbc_fetch_row return value backwards?"
- Next in thread: Andreas Karajannis: "Re: [PHP-DB] WIERD: odbc_fetch_row return value backwards?"
- Reply: Andreas Karajannis: "Re: [PHP-DB] WIERD: odbc_fetch_row return value backwards?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

