[PHP-DB] WIERD: odbc_fetch_row return value backwards? From: Tyson Lloyd Thwaites (tysonlt <email protected>)
Date: 08/30/00

Hi all,

Is this broken?

                    if (odbc_fetch_row($qry, $row)==true) {
                          return odbc_result($qry, $fld);
                    } else {
                          return "err";
                    }

If fetch_row finds data, the above code jumps to "err", but if
I change 'true' to 'false', it jumps to the result branch and prints the
data!

>From the manual:
"If odbc_fetch_row() was succesful (there was a row), true is returned. If
there are no more rows, false is returned. "

Is odbc_fetch_row returning the wrong value?!

Regards,

Tyson Lloyd Thwaites
IT&e Ltd

-- 
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>