Advertisement
fernandezekiel

Untitled

Jul 28th, 2013
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1.     $criteria->compare('branch_id',$branch_id);
  2.         $criteria->compare('classification',$classification) ;
  3.  
  4.         $criteria   ->beginSubCriteria()
  5.                     ->compare('item_code', $_GET['item_code'], TRUE)
  6.                     ->compare('description', $_GET['item_code'], TRUE, 'OR')
  7.                     ->endSubCriteria();
  8.        
  9.         $count = ItemHeader::model()->count($criteria);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement