Tôi muốn xóa một số dữ liệu như truy vấn này có nghĩa là trong PHP lõiMulti-Conditional mệnh đề WHERE trong CodeIgniter
WHERE user_id=$id AND sender_id=$send_id OR user_id=$send_id AND sender_id=$id
Vì vậy, tôi đã thử nó trong CodeIgniter sử dụng Active Record như thế này:
$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);
Nhưng nó cho tôi kết quả sai. Tôi đang làm gì sai?
nhờ cả answrs làm việc cho tôi i bt như thế này vì nó dễ hiểu. –