Almost every wiki explains simple things. I am stuck in yii problem CDbcriteria.
Only the exact match "equal" is explained. for:
select * from users where status ='active'
This comparison is explained:
$criteria->compare('status','active');
But I can not find an example script that describes it using operator-based search. Like not for the following query:
select * from users where status !='active'
How can i do this?
source
share