July 17, 200718 yr Hi All, How can we track if php/FM connection is not set usng Filemaker class? Say if the account parameters passed do not not have access to database. Using following syntax to connect FM database through php API require_once ('Filemaker.php'); $fm = new FileMaker('FMDB.fp7', '127.0.0.1', 'User1', 'user'); Thanks in advance.
July 17, 200718 yr require_once ('Filemaker.php'); $fm = new FileMaker('FMDB.fp7', '127.0.0.1', 'User1', 'user'); $fm->newFindAnyCommand('SomeLayout'); $result = $fm->execute(); if( FileMaker::isError($result) ) { print $result->getCode()." ".$result->getMessage(); die(); } .. I'm not sure what the actual error is for it but if you try a false login it should come up from the above.
Create an account or sign in to comment