title: Query database table field for a string of characters
body: <p>I have a table field 'new_options' that can contain data of the folling types:</p>
  
  <ol>
  <li>something including string-a </li>
  <li>something including string-b </li>
  <li>nothing at all</li>
  <li>something else not including string-a or string-b</li>
  </ol>
  
  <p>I want to set $options_exist='no' if conditions 1, 2 or 3 are met.
  Or $options_exist='yes' if condition 4 is met.</p>
  
  <p>I have this so far that works for 1, 3 and 4:</p>
  
  <pre><code>$str='string-a';
  $opts_exist = strpos($product[new_options], $str);    
  if ($opts_exist == true) {
          $options_exist='no';
   }
  elseif ($product[new_options]==''){
  $options_exist='no';
  } else {
  $options_exist='yes';
  }
  </code></pre>
  
  <p>How can I add in a condition for string-b too?</p>