Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5292 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

How can I make a search that checks from one field if it's prohibited (meaning that it will not show those posts) when I have like 3-4 different values on that field which I want to show


$fm = new FileMaker(FM_DB, FM_HOST, FM_USER, FM_PASSWD);

$findCommand =& $fm->newFindCommand('layout');

$findCommand->addFindCriterion('title', $title);

if ($format)

$findCommand->addFindCriterion('type', '=='. $format);



$findCommand->addFindCriterion('type2', $type2);

$findCommand->addFindCriterion('description', $description);

$findCommand->addFindCriterion('rights',$rights );







like this $findCommand->addFindCriterion('rights' , "!="$rightsNOT )



And I have a Compound search too where I need to implement this also.



It would be stupid if I need to put lots of rights, but if there is no better way so... 



$findCommand->addFindCriterion('rights',$rights2 );

$findCommand->addFindCriterion('rights',$rights3 );

$findCommand->addFindCriterion('rights',$rights4 );

This topic is 5292 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.