I'm new to codeigniter. I having a problem checking two values in field using a model with codeigniter.
I'm trying to check if "status" value is "Available" or "Notavailable"
I'm using this model to check but only one value. 'Available' Only.
public function withdraw_check($data)
{
$this->db->select('game');
$where = array('id_user' => $this->session->userdata('user_id'),
'status' => 'Available',
'game' => $data,
'site' => $this->system_library->sitename()
);
$this->db->where($where);
}