Error Code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
muralimohan001
Forum Newbie
Posts: 4
Joined: Tue Nov 18, 2003 9:37 pm

Error Code

Post 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
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

are you using an oracle dstabase?

What error code are you exactly trying to get?

Mark
muralimohan001
Forum Newbie
Posts: 4
Joined: Tue Nov 18, 2003 9:37 pm

Post 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
Post Reply