title: How can I use or condition in addFieldToFilter magento?
body: <p>I am creating a search form where user can enter state,city or zip in a single input field. I am using following code:</p>
  
  <pre><code>$collection = Mage::getModel('searchservice/service')-&gt;getCollection();
  $collection-&gt;addFieldToFilter('compstate',array('like'=&gt;$post['input1']));
  foreach ($collection as $record)
  {
      $data[] = $record;
  }
  Mage::register('data', $data);
  $this-&gt;renderLayout();
  </code></pre>
  
  <p>It is returning <code>compstate</code> result but I want that user can enter any field like zip and city also. How to use or condition here?</p>