Multiple Select N Database

i using multiple listview

i want to save data with i select here is my controll & form code

Form

<?php $this->widget(‘ext.multiselect.JMultiSelect’,array(

‘model’=>$model,

‘attribute’=>‘User_id’,

‘data’=>array(User::model()->getUseroptions()),

//additional javascript options for the MultiSelect plugin

‘options’=>array()

)); ?>

i using multiple select extension

my controll

public function actionCreate()

{


	&#036;model=new Multipleuser;


	// Uncomment the following line if AJAX validation is needed


	// &#036;this-&gt;performAjaxValidation(&#036;model);





	if(isset(&#036;_POST['Multipleuser']))


	


	{


		


		foreach (&#036;_POST['Multipleuser']['User_id'] as &#036;value  ) 


		 {


			 &#036;model-&gt;User_id=&#036;value;


			 //echo &#036;value;


		&#036;model-&gt;attributes=&#036;_POST['Multipleuser']  ;


			


		


		//&#036;value = implode(&quot;,&quot;,&#036;model-&gt;User_id);


		


	&#036;model-&gt;save();


			&#036;this-&gt;redirect(array('view','id'=&gt;&#036;model-&gt;id));


	}


	}


	


	





	&#036;this-&gt;render('create',array(


		'model'=&gt;&#036;model,


	));


}

how do this please help ?