Ok I'm building a plugin that needs to check for an id in an array and return only users that have the id in the checkbox array.
So this is what I have:
$user_criteria = craft()->elements->getCriteria(ElementType::User); $user_criteria->interests = $interestId; $users = $user_criteria->find();
interests is a dynamically created checkbox array which sits under the users profile. $interestId is the id I wish to look for in that array and return all users that have it.
Any help much appreciated.