Codeigniter select query with AND and OR condition

You can code it like this:

       $this->db->where('wrk_fld_exc',140);
       $this->db->where('wrk_cs_sts','open');
       $where="(wrk_dlvrd_sts="open" or wrk_cl_sts = "Success")";
       $this->db->where($where);

Leave a Comment