Haz tenido en cuenta esto que dice en php.net (
http://www.php.net/manual/es/function.odbc-connect.php )?
Cita: Ceeclipse
05-Feb-2008 09:36
"Returns an ODBC connection id or 0 (FALSE) on error."
Keep in mind that the following code in PHP5 will not work properly:
<?php
if( odbc_connect("test", "test", "test") === false ) {
// Your error reporting/handling here..
}
?>
odbc_connect() returns an integer, and not a PHP5 boolean!
Basicamente dice que odbc_connect() retorna un entero, no un boolean en php5.