Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $criteria->compare('branch_id',$branch_id);
- $criteria->compare('classification',$classification) ;
- $criteria ->beginSubCriteria()
- ->compare('item_code', $_GET['item_code'], TRUE)
- ->compare('description', $_GET['item_code'], TRUE, 'OR')
- ->endSubCriteria();
- $count = ItemHeader::model()->count($criteria);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement