Re: OCIError

From: Date: Tue, 01 Aug 2000 11:17:09 +0000
Subject: Re: OCIError
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9399@lists.php.net to get a copy of this message
Daniel, For you information the this question should be directed at php-db. In answer to your question the OCIError function returns FALSE on sucessful completion of OCIExecute and an associated array on failure. The array contains 2 indecies "message" and "code" eg: $stmt = OCIParse($DB_WDB,"select * from bob"); OCIExecute($stmt); $res = OCIError($stmt); if ($res == FALSE) { echo "ok"; } else { echo "bad: reason: $res[message] ($res[code])"; } Hope this helps, David. ----- Original Message ----- From: Daniel Korcak <korcak@vol.cz> To: <php-general@lists.php.net> Sent: Tuesday, August 01, 2000 12:06 PM Subject: [PHP] OCIError > Hi All > > Is there someone which is using this function ? > In my tests it returned allways nothing :o( > Is there another way to get an Oracle Error Code ? > (I need it for testing why the staement falls) > > -- > .-. s pozdravem / best regards > ( |.-. > .-\/____) Daniel Korcak [Kork] > (__/ \ ICQ: 39346616 > \_/ tel: +420.2.96251413 > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#9399) next »