Hi
I want to display the actual exceptions that occurs on the database side rather than showing my custom messages in PHP using throw clause. How can i do this?
eg: on inserting a record in the database, i am getting a unique constraint violation exception but i dont know how to display it in php.
Thanks and regards
Admin
http://www.stagtechnologies.com
Retrieving MySQL exceptions
Moderator: General Moderators
-
stagtechnologies
- Forum Newbie
- Posts: 2
- Joined: Tue Dec 02, 2008 12:39 pm
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: Retrieving MySQL exceptions
Do a check first to see if the entry already exists, if so then you have your flag, if not you can do the insert 
-
stagtechnologies
- Forum Newbie
- Posts: 2
- Joined: Tue Dec 02, 2008 12:39 pm
Re: Retrieving MySQL exceptions
thanks
but i dont want to do that on the application side
i have got integrity constraints in place in the database
they are giving me exceptions
i just want to print those on the UI using php
can i do that
but i dont want to do that on the application side
i have got integrity constraints in place in the database
they are giving me exceptions
i just want to print those on the UI using php
can i do that