2016-10-17 34 views

回答

1

試試這個它的作品你...

$this->db->where_not_in('sport_id', explode(",",$sport_id)); 
$this->db->where('user_id', $user_id); 
$this->db->update("sports", array("status" => 0));    
+0

我嘗試你的代碼,但它給出錯誤像截斷不正確的DOUBLE值:'1,4,16,17'。更新'體育'SET' status' = 0 WHERE'sport_id'不在('1,4,16,17')和'user_id' ='30' –

+0

檢查現在..你需要爆炸'$ sport_id' –

+0

謝謝你現在工作 –