i have another table callled bloggerinteretrelation in which blogger select his interest .
My problem is that .when i login with blogger id it should show all 5 interest with check box but only those check box should be checked which blogger login.
if i have interest reading,singing,playing etc.
if blogger select reading.then remaining field should be unchecked,
What data has your $data7 variable? And your $data1?
You should load all "interest" rows in $data7 then load "bloggerinteretrelation" for actual member in $data1, can you put here the print_r() of $data7 and $data1?
Anyway, if the interests you wanna show are only for a single blogger, i think you should do the logic in the controller so you only have to print it in your view, creating model instance like this to send it to the view
$searchCriteria = new CDbCriteria();
$searchCriteria->select = "t.type, bir.blogger_id";
$searchCriteria->join = "LEFT JOIN bloggerinteretrelation bir ON t.id = bir.interest_id WHERE bir.blogger_id = ".$blogger_id;
$data1 = Interest::model()->findAll($searchCriteria);