Hi experts,
I need to LIMIT the results by using LIMIT
im using like this… but i need to LIMIT the results as it is fetching all the results from database…
$q->addSearchCondition('name',$word,true,"OR");
$names = Model::model()->findAll( $q );
I need my query like this…
SELECT * FROM `table` WHERE name REGEXP 'states' LIMIT 0 , 10
can anyone pls help me to write LIMIT with addSearchCondition
Many Thanks,