I am trying to connect to Oracle through ODBC in PHP but so far have been unsuccessful.
My ODBC connection checks out OK and has the parameters shown in the attachment.
SERVER = STUDY (local machine)
DATABASE NAME = MYDB
etc
Here is what I have tried and the result:
$connectionstring = odbc_connect("DRIVER={Oracle in OraDb10g_home1};SERVER=STUDY;DATABASE=MYDB","system","*******");
results in ...
Warning: odbc_connect() [function.odbc-connect]: SQL error: Specified driver could not be loaded due to system error 5 (Oracle in OraDb10g_home1)., SQL state IM003 in SQLConnect in c:\Inetpub\wwwroot\ConnectORACLE.php on line 4
I have also tried various other things including:
$connectionstring = odbc_connect("Driver={Oracle in OraDb10g_home1}; ;UID=system; PWD=squeeze");
which results in ...
Warning: Wrong parameter count for odbc_connect() in c:\Inetpub\wwwroot\ConnectORACLE.php on line 5
I apologise that this is a basic question and I'm sure that the answer is straightforward but I am new and it's driving me mad.
I have no problem connection to SQL Server through ODBC using ...
$connectionstring = odbc_connect("DRIVER={SQL Server};SERVER=STUDY;DATABASE=tempdb", 'sa','');
Thanks for your help!
:bemused: