I may have a solution to my problem, but I would appreciate comments if I'm missing something.
What I am trying to do is control program flow after a recordset Find query. For instance, when a member is taken to his home page, I want to offer him a link to his membershow results - but only if he has any (most won't). So I'm operating on the assumption that if(FileMaker::isError($Test_result)) is a boolean (True or False). I don't know enough php to figure out how to make that a negative statement (if the recordset doesn't exist), so I've set up a temporary varieble $skip that can be eiither "true" or "false". If it's not true, everything that follows "if(FileMaker::isError($Test_result))" is skipped, if it's true, it is executed. I can also use the $skip variable in the body of the page to either present a link or not.
Here's the code:
$ShowEntries_find = $WebUserLogin->newFindCommand('MemberShowEntryDetails');
$ShowEntries_findCriterions = array('ShowID'=>'=='.fmsEscape($CurrentShow_row->getField('ShowID')),'MasterID'=>'=='.fmsEscape($WebUser_row->getField('MasterID')),);
foreach($ShowEntries_findCriterions as $key=>$value) {
$ShowEntries_find->AddFindCriterion($key,$value);
}
$ShowEntries_result = $ShowEntries_find->execute();
//The following substitutes for the FMStudios error trapping.
//It skips the paging of records if none were found.
if(FileMaker::isError($ShowEntries_result)) { $skip="true"; }
else
{ $skip="false"; }
If ($skip != "true") {
$ShowEntries_row = current($ShowEntries_result->getRecords());
fmsSetPage($ShowEntries_find,'ShowEntries',10);
fmsSetLastPage($ShowEntries_result,'ShowEntries',10);
}