What's wrong with this picture? I get no errorCode: $query=new FX($serverIP,$webCompanionPort, $dataType, $scheme); $query->SetDBData($webDB,'web_InternAppl',1); $query->SetDBPassword($webPW,$webUN); $query->AddDBParam('webUsername',$username); $queryResult=$query->FMFind(); echo 'Error code: '.$queryResult['errorCode'];