title: How to compare array value with column in codeigniter database query
body: <p>I am using codeigniter with php. I want to get values from database table by comparing a column. The problem is the value coming from html code to compare with column is checkbox value and array. I want something like it,
  HTML</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input type="checkbox" name="car[]" value="Audi"&gt;Audi&lt;br&gt;
  &lt;input type="checkbox" name="car[]" value="BMW"&gt;BMW&lt;br&gt;
  &lt;input type="checkbox" name="car[]" value="Ford"&gt;Ford&lt;br&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>and code in codeigniter model is
  <code>$this-&gt;db-&gt;where('car_name ==', $car[]);
  $this-&gt;db-&gt;get('cars');</code></p>