I want to delete some data like this request which is in the core of PHP
WHERE user_id=$id AND sender_id=$send_id OR user_id=$send_id AND sender_id=$id
So, I tried it in CodeIgniter using Active Record, like this:
$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);
But this gives me the wrong result. What am I doing wrong?
user2166307
source
share