コアPHPにあるこのクエリのようなデータを削除したい
WHERE user_id=$id AND sender_id=$send_id OR user_id=$send_id AND sender_id=$id
そこで、次のように Active Record を使用して CodeIgniter で試しました。
$this->db->where('user_id ', $id);
$this->db->or_where('user_id ', $send_id);
$this->db->where('sender_id ', $send_id);
$this->db->or_where('sender_id ', $id);
しかし、それは私に間違った結果をもたらします。私は何を間違っていますか?