Problem with SAPDB PHP Linux ODBC
Tobias <[email protected]> Mon, 08 Sep 2003 19:05:17 +0200
| Newsgroups | gmane.comp.db.sapdb.general |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have a problem with PHP to connect to SAP DB via ODBC. The System is Linux 7.3 and PHP 4.3.1 with "--with-iodbc" IODBC Support compiled. The Database runs correct and i can connect via the SAP Database Manager and SAP Studio. I have installed the RPM (with ODBC) sapdb-callif-7.4.3.27-1.i386.rpm. So there is an ODBC Driver called /opt/sapdb/interfaces/odbc/lib/libsqlod.so My ODBC.ini looks like: [ODBC Data Sources] CSDB1 = SAP DB [CSDB1] Driver = /opt/sapdb/interfaces/odbc/lib/libsqlod.so ServerDB = CSDB1 ServerNode = 192.168.1.7 Database = CSDB1 Host = 192.168.1.7 and the odbcinst.ini looks like: [ODBC Drivers] OpenLink (MT) = Installed [OpenLink (MT)] Driver = /home/openlink/lib/oplodbc.so.1 Setup = /home/openlink/lib/oplodbc.so.1 The PHP Script calls the odbc_connect function and the following error appears: Warning: SQL error: , SQL state øÃT in SQLConnect in /home/www/html/includes/db_class.inc.php on line 23 I dont know how to get this to work? Thank you, Tobias