I put a try and catch block around $db->Execute($sql), but when there is database exceptions (such as 1062 Duplicate primary key error), the error will simply be printed out on the page (to be exact, on a totally white page: so all other parts of the code is not executed).
Does anyone have any idea of it? What I want to do is to be able to catch all the exceptions in $db->Execute($sql) call.
Thanks!
Bookmarks