AnsweredAssumed Answered

PHP with FM server 12 not working

Question asked by fredrogers on Jun 21, 2012
Latest reply on Jun 25, 2012 by fredrogers

I am trying to learn how to use php with filemaker and I have ran in to some kind of issue.

 

I am tyring to performe a search on a layout.

 

if (empty($display))

{

echo '<h3>Some of your information is missing. Please go back and fill out all of the fields.</h3>';

}

else

{

echo "<p>Performing find ". $display . "</p>";

#echo $display . " - searching";

#this is where I am going to try and search

$findComand =& $fm->newFindCommand ('Medical Providers Managment');

$test =& $findcommand;

Echo "step 1";

$findCommnad->addFindCriterion('Att Billing', $display);

Echo "step 2";

$result = $findCommand->execute();

echo "Find is done";

#Check for an error

  if (FileMaker::isError($result)) {

  echo "<p>Error: " . $result->getMessage() . "</p>";

  exit;}

 

}

Echo $result;

 

I hope this code show up ok.

 

Ok, if I submit a blank form, then I see my error message "Some of your information is missing. Please go back and fill out all of the fields"

 

Then if I put anything in my form I go:

 

Perfoming find "company name"

Step 1

 

 

And that is it.

I never see the step 2 echo or any results or error messages.

 

Thanks for the help!

 

-=fred=-

Outcomes