Page 1 of 1

Error Code

Posted: Tue Mar 02, 2004 6:20 am
by muralimohan001
Hi all,

I am new to PHP and I am using Zend engine version: 1.3.0 and PHP3.

I am using ora_errorcode function to get Error Code but it is giving undefined function message.

My code is as follows

$errorCode = ora_errorcode($connection);

echo('errorCode is '.$errorCode);

$errorDesc = sqlite_error_string($errorCode);

echo('errorDesc is '.$errorDesc);

Please help me in this issue.

Thanks,
Murali

Posted: Tue Mar 02, 2004 6:41 am
by JayBird
are you using an oracle dstabase?

What error code are you exactly trying to get?

Mark

Posted: Tue Mar 02, 2004 8:41 pm
by muralimohan001
S. I am using Oracle database.

What I want to do is , when ever there is a error or exception while insertingt data in Database, I want to get the Oracle error code(using ora_errorcode function). Using this error code , I can get description of the error by using sqlite_error_string function.

Pls help me in this issue.

Regards,
Murali