Date: 08/30/00
- Next message: Tyson Lloyd Thwaites: "[PHP-DB] problem using odbc_fetch_row to count rows"
- Previous message: puguh sn: "[PHP-DB] --"
- 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 ]
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>
- Next message: Tyson Lloyd Thwaites: "[PHP-DB] problem using odbc_fetch_row to count rows"
- Previous message: puguh sn: "[PHP-DB] --"
- 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 ]

