[FX.php List] Fatal error: Cannot use object of type FX_Error as array

Brion Vibber brion at pobox.com
Tue Aug 2 08:42:10 MDT 2005

Adam Gamble wrote:
> *Fatal error*: Cannot use object of type FX_Error as array in
> *C:\apachefriends\xampp\htdocs\includes\contactFunctions.php* on line *94*

Sounds like you're having an error connecting, but aren't checking for
the error object. You should check something like this:

if (FX::isError($result)) {
   echo "Error contacting database: " . $result->getMessage();
   return false;
if ($result['errorCode']) {
   // .....

-- brion vibber (brion @ pobox.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20050802/d840a37b/signature.bin

More information about the FX.php_List mailing list