Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //lets try connect to the filemaker instance
- set_time_limit(1000);
- require_once('FileMaker.php');
- $fm = new FileMaker();
- $fm->setProperty('database', 'xxxxx');
- $fm->setProperty('hostspec', 'xxxxxxx');
- $fm->setProperty('username', 'xxxxx');
- $fm->setProperty('password', 'xxxxx');
- if(Filemaker::isError($connected))
- {
- echo "<p> Connection Error: ". $connected->getMessage() . "</p>";
- }
- else
- {
- $username = "janedoe@gmail.com";
- $password = "pasword2";
- $qname = '=="'. $username .'"';
- $pword = '=="'. $password .'"';
- $findCommand = $fm->newFindCommand('Contact Details');
- $findCommand->addFindCriterion("user name", $qname);
- $findCommand->addFindCriterion("password", $pword);
- $result = $findCommand->execute();
- //$records = $result->getRecords();
- //echo 'Found '. count($records) . " results.";
- echo "<pre>";
- var_dump($result);
- if(FileMaker::isError($result))
- {
- echo "<p> Read Error: ". $result->getMessage() . "</p>";
- }
- /*echo "<br><br><br><br><br><br>";
- echo "<pre>";
- echo "<strong> These are the layouts available</strong><br>";
- $connected = $fm->listLayouts();
- var_dump($connected);
- */
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement