This code of my model:
public function select($id)
{
$this->db->select('Something');
$this->db->from('tbl_somthing');
$this->db->where('tbl_somthing.User_id',$id);
$this->db->where('tbl_somthing.Something',0,FALSE);
$query = $this->db->get();
return $query->result();
}
How can I select only non-zero values from the Something field? The above request does not work.
source
share