Codeigniter join query multiple conditions don't work

前端 未结 6 1459
温柔的废话
温柔的废话 2021-01-14 11:12

I want to select data from my database table with join query, but my it doesn\'t work.

My query:

$this->db->select();
$this->db->from(\'w         


        
6条回答
  •  Happy的楠姐
    2021-01-14 11:23

    This will work:

    $this->db->join('schedule', 'schedule.itemid = we.cid');
    $this->db->where('we.isActive','Y');
    $this->db->where('schedule.itemtype', 'testitem');
    $this->db->get('we');
    

提交回复
热议问题