WIERD: odbc_fetch_row return value backwards?
| From: | Tyson Lloyd Thwaites | Date: | Thu, 31 Aug 2000 02:20:10 +0000 |
| Subject: | WIERD: odbc_fetch_row return value backwards? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-2505@lists.php.net to get a copy of this message | ||
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