CodeIgniter Forums

Full Version: Trying to select DINSTINCT values
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]jvk22[/eluser]
I'm trying to select dinstinct values for a search function, however its selecting values with the same name more then once.


Code:
$this->db->like('domain_name',$domain_name);
  $this->db->distinct();
  $query = $this->db->get('complaints');
  return $query->result();