am new for YII. i custom table created displayed tables values while update the form. so i want to update the form. when i click to delete button the row wants to be delete. i wrote delete query which is
![i added screen shot. which shows del button. if click entire row wants to be delete][1]
In this query. entire tables gets deleted when am refresh page.. please suggest me suitable answer
$id =$_REQUEST['id'];
$id1=10;
$command ="DELETE FROM holidays WHERE holiday_id='$id' and recipe_id='$id1'";
$command = Yii::app()->db->createCommand($command);
$command->execute();