First: This error happens because you don't have the ODBC PHP extension installed.
In debian distros you can solve this with a
apt-get install php5-odbc, but you can check this also with your hosting provider.
When you see a
Call to undefined function you always must check the php.net to be sure about the name of function, or the extension is not loaded.
PS 1: I think you're trying to compare/transfer data between two databases, right?
PS 2: Make sure your server can reach the ODBC address. The webserver is not your dev machine, so localhost is not the real localhost ;)