Question about filtering multiples in where

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 28, 2016   (RSS)

$options = $pagesRecord['option_sets'];

// load records from 'gear_options'
  list($gear_optionsRecords, $gear_optionsMetaData) = getRecords(array(
    'tableName'   => 'gear_options',
    'where'   =>  "`num` = '$options'",
    'loadUploads' => true,
    'allowSearch' => false,
  ));

$options prints as 1 2 what i'm trying to do is only show records with the nums in the $options variable, how would i go about accomplishing this?