0 Replies Latest reply on Feb 16, 2013 8:10 PM by InvectusIlumni

    Unable to access Filemaker record via PHP API

    InvectusIlumni

      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 '


           '; } ?>