AnsweredAssumed Answered

Unable to access Filemaker record via PHP API

Question asked by InvectusIlumni on Feb 16, 2013

Title

Unable to access Filemaker record via PHP API

Your post

     Hi all, I'm trying to access a Filemaker record via PHP, but nothings comes although my connections are fine.

      

     Sny idea why?


         <!--?php
    

          $cmd =& $connection--->newFindCommand('CUSTOMERS');
          $cmd->addFindCriterion('email', 'selinaafricaine_9@hotmail.com');
          $result = $cmd->execute();
        
        //It is possible, after executing a command, that an error will occur. Check for an error
        if (FileMaker::isError($result)) {
            echo "

     Error: " . $result->getMessage() . "

     "; exit; } $records = $result->getRecords(); foreach ($records as $record) { echo 'First Name: ' . $records->getField('name_first') . '
     '; echo 'Last Name: ' . $records->getField('name_last') . '
     '; echo 'Email Address: ' . $records->getField('email') . '
     '; echo '


     '; } ?>

Outcomes