Again, READ THE PHP MANUAL FIRST.
odbc_fetch_row
returns a
bool
, which of course can't be iterated.
From the description in the manual:
bool odbc_fetch_row ( resource $result_id [, int $row_number ] )
Fetches a row of the data that was returned by odbc_do() or odbc_exec(). After odbc_fetch_row() is called, the fields of that row can be accessed with odbc_result().