ficti0n, on 04 June 2010 - 05:46 PM, said:
Hmmmm actually can I do this via calling the search action??? and when the user logs into the admin page it searches automatically and shows only thier items?

Don't think it's a good idea the above.
What you are going to do is in the controller of the your first though is correct.
CDbCriteria should look like.
$criteria=new CDbCriteria(array(
'condition'=>'status= :memberidparameter',
'params'=>array(':memberidparameter'=>$memb) , //i am not sure if the must be an array there.
));
What this differs from yours and think this is the error is
public function actionIndex()
{
$dataProvider=new CActiveDataProvider('Member', array(
'criteria'=>array(
'condition'=>'memberId [size="4"]===Yii::app()->user->id [/size]',
'with'=>array('team'),
),
don't forget tha the condition is
Quote
query condition. This refers to the WHERE clause in an SQL statement. For example, age>31 AND team=1.
so === don't help and finally if it would you then going to make this equal with the string Yii::app()->user->id NOT the val.
This is why you have it in '' and not outside.