Welcome to Dream.In.Code
Become a PHP Expert!

Join 136,921 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,771 people online right now. Registration is fast and FREE... Join Now!




catching oracle exceptions in php

 
Reply to this topicStart new topic

catching oracle exceptions in php

samn84
12 Mar, 2008 - 10:38 PM
Post #1

New D.I.C Head
*

Joined: 21 Feb, 2008
Posts: 41

how do we catch oracle exceptions in php because it dsnt look nice if a uniqueness constraint is voilated it jz appears at the bottom ov the page every time!!!i can get the exception like this:

CODE

$arrerr=OCIError($istmt);
                if($arrerr['code'])
                {
                        echo $arrerr['message'];
                        <?OCIRollback($c);
                        exit;
                }
                else
                {
                        //echo "insertion suceccful!!!";
                        OCICommit($c);?>
                        <script language="JavaScript" runat="server" type="text/javascript">
                         window.alert("Insertion Successfull!");</script>
                <?}


but i wna display the exception in a nice n proper way too!
any help/suggestion/ideas wud be greatly appreciated.

*edit* code.gif

This post has been edited by no2pencil: 12 Mar, 2008 - 11:51 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 10:12PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month