我所看到的只是or_like()
。是否可以查询两个不同的“喜欢”并且两者都是强制性的?
return $this->db
->select('product_key.contact_email, product_key.contact_number, product_key.client_name, product_key.batch_code, product_key.status, product_key.key, payment.paymentdate, product_key.id, payment.notified')
->from('product_key')
->limit($limit,$offset)
->like('product_key.client_name', $filter_name)
->like('product_key.status', $filter_status) //Second like ('AND LIKE' maybe?)
->where('status', 'purchased')
->select_max('paymentdate','latest_payment')
->join('payment', 'payment.keyid=product_key.id', 'left outer')
->order_by('client_name', "asc")
->group_by('product_key.id')
->get()
->result();