[eluser]snowstar[/eluser]
Hi All,
I'm having trouble writing a query. It currently looks like this:
Code:
$this->db->select('id, date, clientid');
$this->db->where('date', $date);
$query = $this->db->get('tbl_sales');
return $query->result();
I need the query to return data from a table where date matches my $date and where clientid is unique (its possible for the clientid to have a clients id appear more than once)
Any help is greatly appreciated