Hi!
Our system is an apache 1.3.14 server with php 4.0.4pl1 as a loadable
module and IBM DB2 7.1 installed as a developer client, so we have to access
a remote DB2 server on a NT machine.
We have an instance ('db2inst1', the default one) that seems to work fine,
because we can catalog databases and access them using command line. Once
connected, we can perform normal SQL and sql select's return right values
from tables.
However, when we try to connect to that same database from a php script, we
get the following error message:
Warning: SQL error: , SQL state ¿Ë ?=z@éÿ¿ÛË ?=z@?=z@ in SQLConnect in
/usr/local/apache/htdocs/index.php on line 2
The script is the following
<? $connect = odbc_connect("mybase", "user", "passwd"); ?>
The script escapes through the die condition, and note that SQL state in
error message does not return a code number but random rubbish (it seems to
be a fragment of RAM content).
Can anyone help me?
Thanks in advance