Rasse Posted May 20, 2010 Posted May 20, 2010 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 );
Rasse Posted May 21, 2010 Author Posted May 21, 2010 (edited) no need to reply... I used compound and setOmit() Edited May 21, 2010 by Guest
Recommended Posts
This topic is 5557 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 accountSign in
Already have an account? Sign in here.
Sign In Now