|
发表于 2013-6-11 14:49:43
|
显示全部楼层
你试下这样
$this->db->where(A.idx_member_c_send = ".$this->session->userdata('pr_idx')." and
A.idx_member_c_recv != ".$this->session->userdata('pr_idx')." and
A.f_save_send = 1 and
A.f_block = 0);
$this->db->or_where(A.idx_member_c_send != ".$this->session->userdata('pr_idx')." and
A.idx_member_c_recv = ".$this->session->userdata('pr_idx')." and
A.f_save_recv = 1 and
A.f_block = 0) ;
$this->db->order_by(A.id_threads ,"desc"); |
|