The connection itself is not succeeding: perhaps a problem with permissions, dsn name, etc.
By the way, the fact that you get this cascade of error messages means that you aren't checking the return values from your odbc functions to see if there is a problem. I.e. don't just do this:
$conn = odbc_connect(...);
$result = odbc_exec( $conn, ...);
while (odbc_fetch( $result, ...) )
...
Instead, test the values of $conn and $result to make sure the respective function calls didn't fail. And if they do fail, call odbc_errormsg() or look at $php_errormsg to find out why.