Mysql – Codeigniter or_where condition not working well
Here is my mysql table (chatizin) Id Sender Receiver 1 11 6 2 11 96 3 6 96 4 6 11 And Here is my php codes by using codeigniter 3 $UserId=11; $Receiver=6; $this->db->where(["Sender" => $UserId,"Receiver"=>$Receiver]); $this->db->or_where(["Sender" => $Receiver,"Receiver"=>$UserId]); $this->db->order_by("Id…