Exceptions and suppressing mysqli errors
View Single Post
05-07-2008, 04:37 PM
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Hahah, as usual the mistake is a silly one.
No exception was being thrown because I was checking if $this->mysqli was an object, which it was, error or not. Using
(or as Salathe did,
) got it to work.
As a sidenote,
doesn't suppress the PHP notice itself, it just means
doesn't get any information to return to you. So I either have to use
to test my exception.
Oh and apparently the code wasn't *exactly* as posted, but I won't go into further detail now that it's fixed. Lets just chock it up to early morning coding should not happen in my house. Thank you for your time, I'm here all week.
View Public Profile
Send a private message to delayedinsanity
Visit delayedinsanity's homepage!
Find More Posts by delayedinsanity