PASHA_SANYAL
11-05-2007, 07:50 AM
Hi All,
I really need help on the following code :( . I'm connecting to remote oracle with the following code. Can you tell me what's going wrong. I am not being able to connect to the oracle.:confused:
$DSN="oci8://".USERNAME.":".PASSWORD."@".HOST."/".SID;
$DB=NewADOConnection($DSN);
$DB->debug = 1;
Then I am using this code:
$res = $DB->Execute($sql) or die($DB->ErrorMsg());
It is showing error:
Fatal error: Call to undefined method stdClass::Execute()
I would be greatly obliged if you can share me some light on this...
Thanks in advance,
I really need help on the following code :( . I'm connecting to remote oracle with the following code. Can you tell me what's going wrong. I am not being able to connect to the oracle.:confused:
$DSN="oci8://".USERNAME.":".PASSWORD."@".HOST."/".SID;
$DB=NewADOConnection($DSN);
$DB->debug = 1;
Then I am using this code:
$res = $DB->Execute($sql) or die($DB->ErrorMsg());
It is showing error:
Fatal error: Call to undefined method stdClass::Execute()
I would be greatly obliged if you can share me some light on this...
Thanks in advance,