title: how to search result in codeigniter using age and cast
body: <p><strong>This is model i have to search result by using mysql and codeigniter result searching fine but it show all male but not showing age and cast properly</strong></p>
  
  <pre><code> public function get_selected($age, $cast) {
          $this-&gt;db-&gt;select('*');
          $this-&gt;db-&gt;from('bride_groom_register');
          $this-&gt;db-&gt;like('age', $age);
          $this-&gt;db-&gt;or_like('cast', $cast);
          $this-&gt;db-&gt;where("gender='male'");
          $data = $this-&gt;db-&gt;get();
          if ($data-&gt;num_rows() &gt; 0) {
              return $data-&gt;result_array();
          } else {
              return FALSE;
          }
      }
  </code></pre>